Urinary tract infections can occur from the urethra to the kidneys. Infection that spreads to the top, can cause nausea complaints that you experience. Reproductive tract infections can also cause pain that you experience. Infection in the digestive tract can also cause pain and nausea that you experience.
It's a good idea to see a doctor. It takes deeper history digging and direct examination to find out what you experienced. Without it, the doctor cannot determine what you are experiencing. Avoid using drugs outside the doctor's advice.