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.