Painful spasms, also known as PANGS, are involuntary muscle contractions that can cause intense pain. They can be caused by a variety of medical conditions, such as fibromyalgia, multiple sclerosis, and endometriosis. PANGS can be treated with medications, physical therapy, or lifestyle changes.