my boyfriend won't talk to me

Maddie
I get a text from one of my friends because he was texting my boyfriend... apparently I'm the problem but he won't talk to me I've called him I've texted him he cussed me out yesterday... I've been with him for a year we've had sex and this change in him happened within the past 3 months.. I don't know what to do I'm so hurt and I've been depressed for the past two days.. I can't eat.. I finally passed out of exhaustion yesterday.. what do I do...?