Learn from the mistakes that caused the relationship to slip away and fail. Reapply the lessons as strengths in the next, though, as you dated for multiple years in the past, I think this is a pretty good practice in really getting a feel for someone before committing. If you are in America, marriages before 5 years can be annulled I believe, rather than a formal divorce process taking place.
It is a lot harder to do than it is to say when you are experiencing loss like this. I would know far too many times over, and mostly all my own fault for chewing myself up by continuing to throw my energy towards others rather than cycling it back to myself in a self-sustaining circuit. I believe being alone, for most at least, especially in an age where contact with others is fairly easy if you apply yourself, is a pretty difficult feeling to deal with. Perhaps like void meditation being particularly difficult to really work in to when we are surrounded, most of us again I'd imagine, by a very busy, noisy, and overall distracting world. Folks that live more in the countryside and complain about it really do not know how good they got it in quite a few ways, but that is with the assumption that some at least do.
If things are cut off, and the other end, your ex wife, is not returning calls, communication, and generally is away, doing whatever she feels is right for herself. Begin to distance yourself as well, because throwing yourself bloody against the wall by trying to force what is no longer an option will only make you more miserable. Distance, and silence. I would recommend neatly preparing her things, if you have not already, ready for her to take, or the opposite if you are moving out. Work on what you need to stabilize the situation. Focus on your job. Focus on getting some kind of roommates if necessary in the interim if your ex wife was helping pay bills. Do what you need to do to keep that base under you.
And if you are feeling at all suicidal, understand at least from someone who has been there, unfortunately a few times, in your particular situation, that you are not alone, but know that there is more to life than the person we are immediately with. Understand, that it is NOT the answer to these types of life issues. At all. It would actually be a particularly cowardly way out of actually using your active life to progress and move forward with the priceless, beautiful tools we have been given here by the Gods and Priesthood within the Temple of Zeus. Life changes, and can suddenly change for a number of reasons, though, the variety of realities in how this comes along can very much vary, and that would be its own long explanation in itself. One only has to read a Natal or Predictive Astrological chart reading to see into a system of which variables effect variables in that the results may continually vary.
Stabilize yourself, try not to over eat, try not to under eat. Try to enjoy public places, and try to settle back in as just you. You live, wake up and go to sleep as you every day. Take care of yourself. Love yourself and do not let that love or any idea of being able to advance yourself be tied to others in such a way if it is.
From a Spiritual end of things, I would recommend beginning to cut energy ties between you and the other individual. Begin to remove pictures and videos that remind you of them, other objects included. Visualize yourself walking away, even though the situation is different as you have presented, but for the sense of being therapeutic and causing the break to also be accepted by you, this is the purpose there. Even if you just do a few breaths a day with feeling energy and visualizations, lots of cleaning your own soul and after the weight starts to lift, finding other activities to advance yourself in to allow you to get to more stable points to resume powerful advancement sessions.
It is absolutely not easy, and unfortunately in my case it took constant failure in relationships to finally dull a certain pain and begin to really force me to accept that, if someone does not want to be around, or a part of my life, they can go their way. I will go mine. I understand my direction. I understand my ability to move forward is not tied directly to others and in this case, rather than applying the wisdom early on and living a happier life sooner, I dragged myself through daggers and fangs instead. What, in some hopes my partner might actually wish to dedicate and join me in the Path? Why tie something that is so sacred in itself, that is all about advancing yourself, ourselves, us as individuals, in the Divine Path of the Gods to attain Godhead and to be as them, to others? Aside from us all being here as a family in Satya within the Temple of Zeus, we are all individuals advancing towards the ultimate goal, working in concert, and sooner then shall we be able to rise and fix this troubled world and as many other humans as possible as time goes on. Beyond that as well I would well imagine. In the end of the crappy situation, be happy you are here. Be happy you know what you know. Be happy you are you and you have this great chance to honor your dedication, have you be dedicated, to live that dedication. Even so, you are here. Not elsewhere not in the know of what the Truth is or what the Truth is not. You are here, at the Truth. You are here, with knowledge at your body, mind, and soul, your fingertips to allow you to apply and rise up. Know this, and try not to salve pain, with the pain of more relationships, with a constant outlook of self pity. I dragged myself through such, and it only wasted time, precious, time, that I will not have back and only hope it does not bite me in the ass too much, though, I have accepted this fate as well if it comes.
Be happy you are you. Your ex-partner does not make you, more you. Be happy with what you have. Be happy in what opportunities you can take to grow in life and that if you are not worth it enough for her, or anyone else to stay around, you always keep plugging on, even if it hurts a lot, or a bit. You are always you, and you can make yourself better from this, and plan for better future, or do the opposite. I would recommend the first one, though freedom allows us to do whatever, even if it is bad for us.
If you think you are flawed, have found flaws. Correct them. Break them down for yourself to understand and correct them. This goes for physical, mental, and spiritual conditions, good or bad. Get rid of the obstacles so you can move forward. Find a plan of advancement, as everything is interlinked, the body, mind, and soul all work together as a unit, this until we get into separating them, which is not the point of my response. Structure a way to get through problems, even if it means structuring your ability to figure out structures. To set goals, and points along the way to get there, and how to attain these points.
Try to look inward and find all the good you can to understand you can be happy to be here, and alive, with the ability to live. Even better in the Truth as a Zevist, we are truly blessed way beyond at least what I can comprehend currently.
It is bad news, but it is not the end. Stay strong and hang in there Brother, it is not worth a failed relationship to throw your chances of all you can do in live and this world and potentially beyond, away.
I hope you are able to heal soon and you no longer are restricted by the obstacle of this loss sooner rather than later.
Life will get better Brother, but you must apply yourself.