Respect your circadian rhythm. We all have a ‘window’ in which we should go to sleep and it is more difficult to get to sleep if we miss that window.
If you find yourself laying in bed, unable to sleep for more than 30 minutes you should get up and leave the room, then return to bed when you feel sleepy.