Myelin insulates nerve cells, the same way plastic insulates an electrical wire, and is essential for transmitting electrical signals through the brain without interference.
Electrical wires are usually covered with plastic or rubber to insulate the electrical wire.