Irregular period..

I haven't had my period in months.. I'm not on birth control and I haven't had sex... and when I finally do its about 7 or 6 months part. It's always worse each time and i always have pains about where my ovaries are... does anyone else have this problem? I really don't know what to do