Whenever I have trouble sleeping(which admittedly isn't often), I turn on AM talk radio, and try to pay attention to it. I don't think I've ever lasted more than about 5 minutes.
Another thing I've noticed is that on a day I don't do much, I have trouble sleeping. Like if I get to sleep in and have a boring day, it's rather difficult to sleep that night. I need to have at least a certain amount of activity. Exercise is a good suggestion, even if it's just a walk or bike(bicycle) ride before bed. I think the Vmax falls more in the "stimulant" category.
Since I finished my quasi-street legal minibike, if I can't sleep I'll get out of bed, get dressed, and go for a nice after-midnight cruise on it. The side streets around me are always totally deserted, and I find that extremely relaxing. All the streets are mine to use. Don't have to stop at redlights, I won't see a single other car, and sometimes cruising along at 40mph on a homebuilt motorcycle is just the ticket. While normally I always wear a helmet on anything, I often don't on these midnight rides. I'm confident in the bike, and there is literally zero traffic, and the wind doesn't bother me at only 40-50mph.
Energy drinks always make me crash, usually 2-3 hours after I drink it. As such, I've learned not to drink them when I need to drive for a while. I had a 4 hour drive ahead of me, and was tired from a long day in the saddle but not really sleepy. I popped a Monster, and felt great for like 2 hours, and then "hit the wall". All of a sudden I was extremely tired and could barely keep my eyes open.
Usually trouble sleeping for me is triggered by having a lot on my mind. I can't get to sleep because I'm too busy thinking about some issue I have to take care of or a problem I don't know how to solve, or something like that. Instead of tossing and turning and trying to "blank" my mind(which never seems to work), I just give in, stare at the ceiling, and think about whatever is bothering me. I work out an acceptable resolution(I'll ask this person tomorrow, fit in fixing that thing this weekend, ect), and then I feel better. If it's something small I can resolve now, I'll get my *** out of bed, get dressed, and go do it.
I'm not big on drugs and avoid taking them whenever possible. The last time I had an Rx was when my wisdom teeth(all four, plus I had two extra molars apparently) taken out. I had hydrocodone for pain and some other thing to help me sleep. It didn't hurt that bad, and the pain meds made me feel nauseous and a little bit drunk, so I didn't use them.
At least for me caffiene has no effect. I guzzle Mountain Dew like water. During the summer when I'm working, I'd have a can when I wake up/on my way to work. One in the morning, and usually a 1-liter with lunch. Then probably another can in the afternoon, a couple with dinner, and at least one at night. I fall into bed at 10 and go straight to sleep. My mother has one can and feels "jittery", so it definitely varies tremendously person to person.