I go through bouts of insomnia every now and then. Nowadays I just kind of accept it and try not to let it bother me.
I've tried taking piriton, cocodamol, natural sleep tablets, reading, listening to the sound of rain on an app. Sometimes these work. A lot of the time they don't.