There is no issue while compiling or running the code except that the motors do not rotate.
Such a small issue. Can't you just overlook that?
Clearly, a schematic is essential. Without the shift register, can you make the motor(s) move? Why are you using a shift register, anyway?