There’s a hundred things you can try before pills
No screen time before bed, read a book or math
No sugar or coffee at least 8 hours before bed
Proper workout during the day so your body is physically tired. Try switching from cardio to strength training
If those don’t work meditation, sleep therapy, mental sleep tricks, hypnosis, etc