As long as you make an identity for yourself out of the pain, you cannot become free of it. As long as part of your sense of self is invested in your emotional pain, you will unconsciously resist or sabotage every attempt that you make to heal that pain. Why?
Quite simply because you want to keep yourself intact, and the pain has become an essential part of you. This is an unconscious process, and the only way to overcome it is to make it conscious.