My ovaries hurt a lot but the pain comes and goes what could it be?

Cysts or ovulation. You may have cysts on your ovaries or you're experiencing the pain that may accompany ovulation. Both can be managed in several ways. I would get a sonogram and see your md.