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.
For some kinds of motors, principally motors with terminal-based connections, basic wiring is self evident. The terminal board itself usually has markings that indicate where line one and line two are to be connected. But what if you need to reverse that motor, use a different (but available) voltage setting, or have a motor that has nothing more than a bunch of color-coded or numbered leads coming out of it?
Here is where metallurgy comes into play. A motor rich in magnetically soft material will be more efficient, producing more work with less heat. And since the magnetic capacity of a motor also is influenced by the amount of active material (more core, more laminations), the tendency might be to try to add as much magnetically soft material to your design as possible.
One way to overcome this situation is by using "magnetically soft" material. Magnetically soft material has atoms that readily reverse polarity (a docile herd?) when exposed to alternating current. Naturally, since the reversing process happens more quickly, there is less wasted energy.