Please help

To not go into full detail because this post would be long, I messed up with the guy that I was dating, then went on a break with-I did not cheat so that isn't the case. I made a mistake and because of it I can't talk to guys, I can't have any social media, I have to dress a certain way and adress him a certain way. I'm not happy being like this. I miss the happy relationship I once had but now it's gone and the only way to fix it is to do what he says and be under his control. I'm so sad. I know I hurt him but I hurt him by accident and without malicious intentions. He said he will leave me if I mess up one more time. Someone please tell me what to do. Im so lost, confused, hurt, and overall feel terrible being like this. I miss talking to some of my guy friends and having social media to post things when Im bored. Now I literally do nothing but cry because.