The only way to get your ex back is by
restoring the power balance. This means taking a step back and giving your ex some space and time to miss you. This is where
the no contact method or the ignoring strategy come in. By cutting off all communication with your ex, you're forcing them to face the reality of life without you, and you're giving them a chance to miss you and realize what they're missing out on. This can be a difficult and painful process, but it's the only way to make your ex see that they need you in their life. It's also the only way to make your ex realize that you're not going to be there for them whenever they want you. You have your own life to live, and you're not going to waste it chasing after someone who doesn't want you. So, if you really want to get your ex back, you need to be strong, confident, and independent. Only then will you have a chance of making things work again.
In some cases, it's not possible to cut off all communication with your ex. For example, if you work together or have children together, you'll need to maintain some level of communication. In these cases, the solution is to use distancing. This means keeping your interactions with your ex as brief and professional as possible, and focusing on the tasks at hand rather than trying to rekindle your relationship. It also means setting boundaries and sticking to them, so that your ex knows that you're not going to be there for them whenever they want you. It's the most difficult and uncomfortable process.
To give you more precise recommendations, I need to know more about your situation.