i think when someone does not want to listen, than you can do different things
1. search your own language or attitude. maybe someone does not understand you of maybe he/she feels under attack of mis understood. often when someone feels that, this will close their hearts
2. if someone does not listen to boundaries that you have, than you have to change your reaction. for example, when someone always says stupid things to you and you told that person to stop that and he won't listen, then you can act by walking away when this happens. cause every change you make in your behavior, makes the people around you and situations change (often)
3 if someone does not listen, because he is just ignoring you, then i think i wouldn't talk to him anymore
i hope the situation will change for you