muscle spasms ??!

This past summer I started to have shoulder pain where my muscle is. I went to the doctor & apparently I've been tensing it without knowing. I have anxiety so that doesn't help either. He gave me muscle spasm pills, but I stopped taking it 7 months ago. This morning as I was driving to work, a smaller car (I drive a big SUV) side swiped me, but they drove away & never stopped. Right away I tensed my shoulder & have been all day to the point where it's sore. A couple mins ago I was leaning on my bf with the same side as the sore shoulder, & I could feel it spasming. It was coming from the same sore spot. I asked my mom (even though I'm 20) if it's normal & if I should take the muscle spasm pills again and she said yes it's normal but don't take the pills.   was wondering if the spasms could be from being tense this whole time ???