It seems that you might have back muscle catch due to strain or some muscle pull due to some unusual movement at back.
But in this situation go for EKG to rule out possibility of having some cardiac ailment.
Take some NSAID
medicine for pain.
Ok and take care.