Realize that you have to reach a point of wanting to get over your ex.
Cut off all communication with your ex.
Do not hook up at all with your ex
When the going gets tough, recall why the two of you broke up
Realize that just because this relationship is over, it doesn't mean that you'll never find love again