I can’t sleep.

Like I try to go to sleep earlier but I just can’t. I always end up sleeping around 5 am 😫. What helps you to go to sleep early ? I was thinking about getting sleeping pills.