Just my 2 pennies here, I would use SHEILDED 18 gauge cable from Belden or a similar company. Especially to the motors. 22 gauge wire found in flat ribbon cables is too small to deliver the amount of current need to drive the stepper motors.
Also, always ground the shield wire, but only on one end of the cable. The shield wire is usually grounded at the controller or at the motor driver. The shield surrounds all the wires inside the cable in a “tube” of sorts and helps prevent motor “noise” from bleeding out. It provides a path for that electrostatic “noise” to go to ground and, thus, not interfere with the timing of the microcontroller. HOWEVER, if that shield wire is grounded at both ends of the cable, you are introducing ground loops. Ground loops are bad. Just always terminate the shield wire of a shielded cable at one end.
Also, when dealing with motors from a stepper driver, it is best if they use an opto-isolator on the data lines. Since the data is always from the controller to the motor in one direction only, an opto-isolator allows the ones and zeroes to pass through to the motor driver, but the noise generated by the coils, through back-emf, etc of the motor do not feed back to the microcontroller, keeping the data signal clean.