Advice?

C
I need advice. 
I've been with my boyfriend for two years now.
The first year we lived in the same state and this current year he moved back to his home town. So it's been long distance. When fight constantly, but when we're together we do not. We broke up a few days ago, and it's been very hard on me but he's seems rather happier. He said he misses me but he don't have stress and feels free now. I don't know weather to keep trying, or just move on. I based my entire future around him, and now I'm very depressed and have no motivation to get out of bed. What do I do? What do I say? Do I let two years go, or do I continue trying...?