Spasmodic torticollis is a painful condition that causes the neck muscles to contract involuntarily.