Think of the atoms of magnetic material as an unruly herd of cattle. Running electric current through the material will polarize these atoms, creating the magnetic field. But as I mentioned, this is an unruly herd, so it takes time for the current to bring all those atoms into formation.
There are two ways to overcome this problem. One is to use a kind of electric current that periodically reverses direction, which is known as an alternating current (AC). In the kind of small, battery-powered motors we use around the home, a better solution is to add a component called a commutator to the ends of the coil. (Do not worry about the meaningless technical name: this slightly old-fashioned word "commutation" is a bit like the word "commute". It simply means to change back and forth in the same way that commute means to travel back and forth.) In its simplest form, the commutator is a metal ring divided into two separate halves and its job is to reverse the electric current in the coil each time the coil rotates through half a turn. One end of the coil is attached to each half of the commutator. The electric current from the battery connects to the motor electric terminals. These feed electric power into the commutator through a pair of loose connectors called brushes, made either from pieces of graphite (soft carbon similar to pencil "lead") or thin lengths of springy metal, which (as the name suggests) "brush" against the commutator. With the commutator in place, when electricity flows through the circuit, the coil will rotate continually in the same direction.
If the coil of wire could carry on moving like this, it would rotate continuously—and we did be well on the way to making an electric motor. But that ca not happen with our present setup: the wires will quickly tangle up. Not only that, but if the coil could rotate far enough, something else would happen. Once the coil reached the vertical position, it would flip over, so the electric current would be flowing through it the opposite way. Now the forces on each side of the coil would reverse. Instead of rotating continuously in the same direction, it would move back in the direction it had just come! Imagine an electric train with a motor like this: it would keep shuffling back and forward on the spot without ever actually going anywhere.
Avoid splicing motor power cables when ever possible. Ideally, motor power cables should run continuous between the drive and motor terminals. The most common reason for splicing is to incorporate high-flex cable for continuous flexing applications.