Caffeine, nicotine and alcohol can keep you from falling asleep or cause you to wake up frequently.