Need some advise!!

I haven't had sex in about 6 months cause I stopped seeing this guy I had a thing with for 2 years. Iv been soo horny lately! But whenever someone wants to get with me I back out. I don't know why, what can I do to get my confidence back or take some of this horny feeling away.