I've been off pills for 8 years and sober from booze for a little bit over 2 years. I don't know if what I have is insomnia since technically i can fall asleep, but most nights I find myself pondering the world when I should be counting sheep.
The mind racing doesn't stop unless I distract it. For me, that's the key. So, most nights, i fall asleep with earphones plugged into my TV on netflix to stop the thoughts. I'm good with that.