be miles away
US /biː maɪlz əˈweɪ/
UK /biː maɪlz əˈweɪ/

1.
to be thinking about something else and not paying attention to what is happening around you
:
•
I tried talking to him, but he was miles away.
•
She must have been miles away, because she didn't hear a word I said.