Right now, no contact and spending this time to work on personal issues as well as personal happiness is the best advice you can get. If he's giving you the cold shoulder, reaching out any further will only push him away. Additionally, given the length of the relationship, you need to spend this time picking yourself up from the breakup, addressing the issues you felt contributed to it, and getting yourself to the right place emotionally before you even consider reaching out or trying to win him back.
When fear loses its power, you become unafraid to be yourself. You learn to show up, to be witnessed, and be real in your relationships, because there is nothing to lose, and nothing to be rejected. Rejection takes on new meaning, and it is no longer because there is something inherently wrong, broken, or inadequate within you. There is great power in authenticity.
It works better with guys you know in real life, but if you’re having trouble getting started then pick your favorite actor. The important part is that you do this once per day, and that you really stick with it. It might not seem like it’s doing much at first, but in reality it’s detoxing your mind consciously and unconsciously from your ex, and putting you in a much better mental state.