Welcome to HCM.
Usually if there is a trainer in the Gym, he should be able to set it right by proper pressure techniques.
If the pain is persisting, best would be to consult an orthopedic surgeon.
He will have to examine you and get an x-ray of the neck and if indicated CT Scan
to exclude disk problem, cervical spondylosis
Wish you speedy recovery.