Sorry to hear it. The best thing is to ride it out, not making any rash decisions or life changes, which, at various times you will want to do.
Don't try to understand it, you may never. DON'T LET IT UNDERMINE YOUR SELF CONFIDENCE!!!! Sometimes people just change. It may be nobody's fault. Hang it there, rely on your friends and have faith that everything happens for a reason.