Thanks for writing to us.
The sudden pain in back with neck stiffness
is likely to be due to an infection- may be a viral infection. An evaluation of CSF will help in exact diagnosis. A muscle spasm is a likely possibility after the infection is ruled out.
I hope this information has been both informative and helpful for you.
Dr. Praveen Tayal