Try not to eat food, drink (even water), or go on your phone at least an hour before bed
Exercise throughout the day to tire yourself out more
Make sure your room is dark. You can play white noise.
Try to calm your mind down before going to bed. Do something relaxing like read a book, listen to calm music, etc.
You can try magnesium or melatonin if you need it but try not to depend on it