Thank you for posting your question here, I will try to answer it to the best of my abilities.
How long have you been having this abdominal pain
and how bad is it? Have you had it looked at by a doctor? You should consider having an ultrasound
of your uterus
and ovaries done, to find out the cause. That may very well be the reason why you cant get pregnant.
I hope this answered your question.