How do you sleep?

I find myself lying awake, tired, but my brain doesn’t stop. I feel like I have a nonstop train of random thoughts going on and on until my brain tires itself out. Even after a long day and having woken up early and tired. I don’t know that I even sleep enough. I try reading or “counting sheep” but even then I start thinking of random crap. How do you fall asleep?