Help!

I'm not sure what's going on. My period is very irregular and I'm not sure why. What would cause irregular periods, really bad cramping, and unable to get pregnant after 6 months of trying?