Thank you for your question.
It is likely that you had a ligament sprain or muscle strain
. These can be very painful a few days afterwards. The way this is treated is
1 Local heat
2 A combination of analgesic
and a muscle relaxant
(e.g. Myospaz Forte or Tramadol and Flexeril).
3 Use of soft cervical collar
for a week.
If pain persists despite this after a week see a doctor.
Wish you the best.