Bad Breakup

About a month ago my boyfriend left me out of nowhere.. Literally the conversation was "what do you want to do for Valentine's Day?" I chose Chinese since it's his favorite then his next text (yes he did it over text) was "I'm so sorry I can't do this anymore were done" after that I didn't hear from him for weeks.. I was heart broken. I would've done anything and everything to get him back.. And finally about a 2 weeks ago he came back after I had moved on. Stupidly I gave him a chance because he said he had changed. He acted so different he treated me so much better than he had before everything was perfect besides the fact that I didn't think I loved him anymore. And the sex was AWFUL. So I broke up with him and told him I had just lost feelings and he freaked out. He begged for me and he called me crying and I felt so bad. Since then he has told me to never talk to him again and that I was a whore... But I can't sleep at night because I'm up so late thinking about him. Like right now it's 3:13 am and I haven't slept. And when I do sleep I have dreams about him.. Even when I think of my future and my future children he's still the one I want to be their father and he's still the one I want to be with.. But he doesn't make me happy. Being with him is just dragging me down. Advice?