To have one's head in the clouds / To be daydreaming
Said about someone who is distracted, not paying attention, or living in their imagination rather than reality.
He didn't hear a word I said. He had his head in the clouds.
—Are you daydreaming again? —Sorry, what were you saying?
She always has her head in the clouds. She finds it hard to concentrate.