Several factors will keep me from falling asleep.
1. The room temperature needs to be right. Too hot or too cold means no sleep.
2. I need to not eat anything for several hours before going to sleep.
3. Sometimes I need to deliberately stop thinking about some project or other, and just 'daydream'. Otherwise my brain will not stop 'working' and let itself rest.
Too hot and humid is the worst for me.