<human>: Can you provide a brief overview of the text?

So about 3 weeks ago my girlfriend of over 1 year broke up with me through text. It was very sudden since 1 day prior everything was going well (at least the way it seemed to me). I have plans of entering a future career in the military and her main reason for ending the relationship was that she couldn't handle being alone for x amount of time while deployed, stress, anxiety, etc. My gf was always of the anxious type and I was able to see pass that and always try to work with her on certain life issues. We talked about the future before and she only said that me being away would suck but it never seemed like it would be the end of our relationship. In addition, she said I was too sexual around her which I agree with and I have tried to change my ways. The last few weeks were not our strongest: she forgot to get me a birthday gift, she barely acknowledged our 1 year anniversary, and never really cared about what I had to say and always talked about her problems. I don't think I did anything of that nature besides what was mentioned previously. We haven't spoken since she ended it (pretty much out of no where) and I am wondering where to go from here. My heart is bleeding to get back together with her or to at least contact her, but my brain is telling me no due to the above reasons as well as her not even having the decency to end the relationship in person. Any advice? I'm torn about whether I should contact her or continue to wait.
<bot>: My gf broke up with me via text due to my future job. My heart says yes but my brain says no since she hasn't been treating me the best and couldn't even end it in person. Any advice?