When this happens to me at 2:30 am, I tried to think about how soft my pillow is and then I listen to my DH breathing. Sometimes that helps other times it doesn't.
They say you are suppose to get up and not lay in bed restless. But I would rather hope sleep will come and stay in bed. This does make for a long day.