Heat and stretches
People often get muscle spasms in the neck.
It is helpful to apply heat and do gentle stretches. Massage
and antiinflammatories could also give you some relief. If it is persistant a doctor can prescribe muscle relaxers. Make sure you stay well hydrated and get adequate rest.