To get distracted and lose track of something (one's train of thought, a conversation).
To forget one's train of thought or temporarily misplace an item or its place in a sequence.