A back spasm may happen after any type of strain or injury to the soft tissues (muscles, tendons, or ligaments) in the spine. This type of soft tissue injury typically recovers enough within a week or two for the muscle spasms to stop.