Masturbation

I’ve tried masturbating for a long time now and it hurts. I even had sex for the first time and was in pain the whole time.I went to the doctors a few weeks ago to take some test and they all came back negative. So I don’t understand if everything is good down there why can’t I enjoy masturbation or sex.