Should I go to the ER or wait?

Had signs of preterm labor yesterday went to the ER and they said I had an infection that could lead to preterm labor. Tonight I've been having period like cramps, some dull aches and some sharp pains. My vagina has been aching also? Im only 23 weeks. What could this be? I'm worried since I have the infection it could be leading to preterm already.