If you're having these problems.. Either you have some kind of infection, or could have an std. Never know, could just be a urinary tract infection, which is caused by numerous things.
First thing first before you keep trying to have a baby.. Get tested for stds and have your current partner tested. You don't want to have any stds when having a child because depending on the std.. It could cause problems to your unborn child. Only way to tell if you're pregnant is to take a test. When you go to a place to get tested for stds, they usually give you a pregnancy test if there's possibilities that you are. So they have to know if you are before they give you treatment.
After trying for a few months, it doesn't necessarily mean you are infertile! Usually they start to factor that in after you've been trying for over a year. So i'm sure you're just fine! Don't worry!
Good luck and hope everything works out!