Suppose at some point during a meeting or even a casual conversation your mind wandered off and you stopped listening. Then suddenly someone asks you a question. You want to let them know you've been thinking about something else for a moment and haven't been following, really.
I would say something like "sorry, I was/got lost in thought" but it seems too formal and even awkward.
What are the options (and is the one proposed above valid)?