MS occurs when the immune system attacks the protective sheath that covers nerve fibers, causing progressive interruption of nerve signals between the brain and the body.