Relationships are never easy. Some relationships are worth saving, while others just are not. But if you want to get your ex back, there are some simple ways to do so. Just be advised that it will take some patience; these are not that easy but they are well worth the time it takes. Also, make sure that the ex is worth it; if the relationship is toxic it may be time to just take advantage of the break and either take a vacation from relationships or just look for a new relationship. You do not want to get stuck in a relationship that is not worth your time, after all. However, if the ex is worth it then you should do what it takes to save the relationship.
Counseling should be among the steps taken. You need to find someone with whom you and your ex can discuss things, preferably a trained counselor but at least a mutual friend should do. All relationships have issues, but you need to find out what the specific issues that drove you apart are and then you can start resolving them. This may not be easy, especially if you are the one at fault, but is the best way to start.
Plying the ex with gifts can also work, but make sure that gifts have some sort of resonance. Chocolate and flowers and venue tickets just will not do here, but things that are important to person usually will. Make sure that the gifts have some actual value, and sometimes the cheapest gifts are the most valuable. This can be as simple as giving the person some space, taking on extra responsibility to make things easier for the other person, and even just giving the ex a key to your apartment can work. The ideal gift is not based on expense, but on how it builds the relationship. Take a step back and try to figure out what is important to the other person and you should do okay.
Just make sure that the relationship is worth saving before you try saving it. For some, breaking up is just a necessary break more than anything else, while for others breaking up is the ultimate threat and just needs to be used every so often to be useful. There are a number of reasons to just to let the relationship go, especially if the relationship is toxic or otherwise dangerous. You also want to avoid having a restraining order placed on you, which can happen if you need to let the relationship go and you are not willing to do so. However, if the relationship is worth saving then, by all means, do what it takes to get your ex back.