How can you tell?

Okay so while having sex for the first time in over a week, it was actually hurting me and I didn't want to tell him because it felt good but it hurt? And when I got to the bathroom is hurts a little too.. Could I have a UTI or yeast infection? How can I tell what can I do to get rid of it? I drink lots of water too because I don't drink pop either