Yes, you have low self esteem, Minkii, as others have said and I'm sure you already suspect yourself.
I also have suffered (am still) with low self esteem and while it hasn't led me to do these particular harmful behaviours in the past, it has definitely made me behave in stupid, high-risk ways which I couldn't understand in my own head because they just don't make sense. So to an extent I understand and can sympathise.
You were asking here for ways forward, so I will share one of the ideas that helped for me.
You think carefully through the sort of person you would like to be in an ideal world. Now start thinking about all your behaviours (everything you do in your life) as either keeping you on track towards becoming that better person, or other behaviours that move you away from being that person.
For example I want to be a healthy, happy woman and a positive role model for my children, but also suffer from an eating disorder. Every time I feel the impulse of my eating disorder strongly, I try to focus on the fact that that behaviour would be taking me away from some very important long term values. There are blips but you need to make the effort to learn what
Caused them, and then reset your course back towards becoming that better person.
Understand that I am using the term "better person" not in a judgemental way, because literally you are the only person who can decide what that might be, for you.
I do see parallels because your sexual behaviour seems somewhat compulsive insofar as it's not highly considered, and you don't seem to understand where it fits in with Who You Are.
Put simply, self esteem building, at least until you get a therapist, might be aiming to cut down on doing activities that cause you shame. As your self esteem grows as a result of living to your values (even with blips along the way) your impulses will get fewer and less powerful.
But it's crucial that you do real work to figure out what's underneath all this for you, because life will always through up little triggers. It sounds like you have a sex addiction and to be free you will need to go into recovery, which is a lot of work on yourself and your past.
I hope this helps.