contractions because of infection

Sarah
Hey ladies so I'm a first time mom so I don't really know what is ok and not but the night before last I started having Braxton hicks and then when I went to dinner I was having cramping pains in my lower belly and in my back so I went in to get checked they said traces of blood in my urine and that I am having contractions but then when she checked me she said I wasn't dialating so I've been taking the meds for a couple of days and each night I can't sleep because of the contractions I'm wondering if anyone else went threw this or if I should be going back because I'm still having them I find them hard to time ....