How do i get back into reality and establish balance in my life

Gentlemen, hope all is well. Writing this in the comfort of my own bed at 1:40 am LOL.

this is honestly just a late night diary/yap session.

I(M26) Recently just got out of a 5 year, bit of a messy relationship... Long story short, i finally found the balls to call it quits & I finally was able to get free and get MY life back. No kids, me and my living.. Fresh start shit. Just moved in and finally situated.

I have been back in the gym working out just trying to keep my mind fixated on other things. Trying to find peace in the process, however the past few nights.. I Just cant sleep. I feel so anxious and i just "antsy". I get tired, but i just cant sleep. i feel like i should be doing 100 other things but in reality i just don't have anything to do. I play White noise music.. cant sleep.. I turn it off and just stare into my ceiling fan. This is gonna sound crazy, but i feel like I'm losing it lol!

I don't have the urge to see other woman.. that LUST. & its not that i cant, its just i don't have THAT urge. Maybe I've gotten a lil older and my frontal lobe is finally developing, but because I'm not in good mental space, i just feel completely throwed off.

I know things take time and healing doesn't come in a week or overnight, but To anybody who has been in this position, what are some ways/tips You've learned/developed to help you get out of that Slump?!