Thanks for query,
it seems that due to some strong jerk you got stiff neck
and spasm of your neck muscles you felt this type of experience.
But to be on safe side go for x-ray cervical region.
go for ECG to rule out cardiac element.
mean while take some analgesic
ok and bye.