It could be depression. Perhaps you should see a doctor. I'm on "happy pills"; "they make my sun shine". They have made a world of difference. I used to be like you; not happy for no reason at all, crying for no reason, felt like crawling in a hole and pulling it in with me.
If it happens more often, I would suggest you seek help.