A torticollis, are you sure?
There are two factors which can explain muscle pain. The accumulation of toxins in the muscle fibres, as well as a lack of nutrients and energy in the muscles can cause the muscles to over-contract. They then remain over-contracted, hard and painful.
Overly intense effort or poor posture is often the cause of these back pains!