It isn't easy trying to get a handle on a relationship that is on the verge of failure. You, most likely, don't really know what to do, but you are open to any advice for broken relationships that will help you to work things out. Keep in mind that every person and every couple is different, so not all advice will work equally well; however, if it means you can be happy again, then all advice is at least worth trying.
As mentioned, not all advice works for everybody, but it is important that you always consider where the advice is coming from. In other words, you need to ask yourself what makes the person qualified to give you any advice for broken relationships. For example, if they have healed a broken relationship and are now happily back together with that same person, then they have some idea of what they are talking about. On the other hand, if the person has had one failed relationship after another and isn't even in one right now, then they probably aren't the most qualified person to help you.
Where can you get advice? Talk to family members who have been in a similar situation. They have the benefit of personally knowing something about you and your relationship, and can make their advice better fit your situation. Friends can be another source of advice for broken relationships, but you also need to be careful that they don't have ulterior motives. For example, if your best friend feels that your ex stole you away from them, then they may (even at a subconscious level) give you advice that doesn't work. A professional counselor can also give you advice on how best to work things out. The advantage here is that they can view your relationship as an objective observer, and they won't take sides when giving you advice. Again, all of this assumes that any of these people are qualified to give you relationship advice in the first place.
There are also a few things you can do yourself to take the sting out of a broken relationship.
1. Go ahead and grieve. Death isn't the only situation that is associated with the grieving process, break ups also require grieving. Give yourself permission to go through that process and reassure yourself that things will be better on the other side of it.
2. Socialize. You may not feel like it, but you should get out and have a social life. That doesn't mean you have to go out and start dating, not at all, but it does mean that you should go out with friends and do your best to have some fun.
3. Give it time. Whether you plan on moving on with your life or wish to get back together with your ex, you need to give things some time. You need that time to get your emotions in check and to come to terms with what has happened.
4. Things will get better. This bit of advice for broken relationships seems so unbelievable, but it is true. The fact that you are reading this is proof that you believe that things can get better, and that's a good thing.