Dear Nik,
I think this isn't the forum for you. You may want to try the depression forum here on Medhelp.
I understand that you're having a lot of depression and confusion. I hope you are getting professional help with it, including someone to talk with on a regular basis, and regular review of your medication, both in terms of kind and effectiveness. It often happens that depression (and a history of getting hurt) gets in the way of relationships, how well they go, our desire for them, and transient feelings of sexual orientation. If you haven't been gay, most likely you aren't.
Also, there's nothing wrong with masturbation, as long as it's not excessive. It can relieve tension. No need to feel dirty.
I hope you take your emotional situation seriously and work with professionals to master it. Don't forget family and friends, too! I wish you well.
Sincerely,
Dr.P.