Pain down there

I've been on my period this past week, and towards the end of the week tampons were starting to hurt some while in my vagina. Also I had sec last night with boyfriend and we went for a long time and now I'm sore and hurting down there. Any ideas?