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?
The shield strongly attenuates the electric field noise. Core to shield capacitance is added to the stray capacitance, increasing ground currents in the loop. These currents generate a magnetic field. It is important to minimize the area of this loop as far as possible by routing the cable close to grounded metalwork.
Wiring diagrams happen to be a perfect vehicle for carrying the principles of technicians beyond nuts & bolts. First, the simple act of color-coding helps to bring out the true wealth of your knowledge and is an excellent step in diagram analysis. Beyond that, it is an amazing tool for developing the awareness needed to get on the road to becoming an expert learner.
If you place the wire near a permanent magnet, this temporary magnetic field interacts with the permanent magnet field. You will know that two magnets placed near one another either attract or repel. In the same way, the temporary magnetism around the wire attracts or repels the permanent magnetism from the magnet, and that is what causes the wire to jump.