If I can't sleep, it's usually because I'm giggly over something, or many somethings. So I listen to music to calm me down.
And it helps calm me down, most of the time, but it doesn't help me get to sleep. So I don't know why I do it. Well, I guess it passes the time. If it was during the summer, and it was really bad, I'd probably start reading.