Nerve cells in the CNS communicate with each other by way of axons (which work like wires connecting one nerve cell to the next).
Axons have a protective coating around them called myelin.
MS causes the immune system to “attack” the myelin, creating damaging lesions within the CNS. This damage keeps the nerve cells from communicating as they are meant to. Therefore, the CNS can’t function properly.