Painful sex???

I have had sex multiple times in the past but haven't for about a year now. I tried having sex yesterday but it hurt too bad and we had to stop. It has always been kind of painful and it really turns me off to the idea of having sex at all. Does anyone else experience this or have any advice?