The best thing I’ve found for insomnia, other than medication/melatonin, is imagining myself flying. Basically going to silly fantasy land bootstraps a sleep state pretty reliably.
However, a few years back a colleague was building a server on a desk near me and it sounded very like the inside of a plane and I became very drowsy almost immediately!