Abandoned and pregnant

My ex decided he didn't want to be in a relationship anymore. At least not with me. He hasn't had sex with me since I got pregnant and I'm 5 months already. I can't take it anymore. We fight every day and he makes me cry everyday. He constantly tells me that he's just going to do things through court. I just wanted to have a family. He feel that he's being selfish. He's 29 and this is his first child and my second child. I need help I feel like I'm going crazy. I even changed my phone number and blocked him. I know he doesn't care about me anymore.