I've had this pain every month for 3-5 days, is it bad?

I would have pain in the bottom of my stomach, and right ball. sometimes with that pain, I would have the urge to use the bathroom (sitting) and nothing would happen. the pain in the bottom of my stomach would sometimes be sharp but would ease up when I would lay down. it happens every month, what could it be?