Final answer:
The erector spinae muscle can raise the iliac crest when in spasm.
Step-by-step explanation:
The muscle that raises the iliac crest when in spasm is the erector spinae muscle. The erector spinae muscle is a group of muscles located on either side of the spine. When this muscle group contracts or spasms, it can raise the iliac crest.