Why is life so horrible?

My entire world is crashing down, everything I’ve cared about in a two week time period has ended. I lost both of my jobs because I was so depressed I didn’t care, I lost the guy I like to his ex girlfriend who lives 15 hours away. I had no idea they where even still talking. And his friend was the one who told me all of this.. she came down here and saw him after the guy she cheated on him with cheated on her. He was my source of happiness.. I’ve known him three months we where nothing but friends with benefits, he constantly told me how much he cared about me and things like that.. but now he wants to work things out with her. I buy him things and he told me how scummy he treats me, and how guilty he felt. It all makes sense now. I have nothing in life. I don’t even have a group of friends to support me. I’m so physically sick..