My motor shield is only controlling one motor when my code is for two

My board is the L298P by Ficbox. https://www.amazon.com/gp/product/B01D83BMES/ref=oh_aui_detailpage_o02_s00?ie=UTF8&psc=1 I was messing with the motor shield, and motor b lights were blinking. I moved the black cord thatconnects the computer to the Arduino a little, and the motor a lights started to blink faintly. They stopped a few seconds later. I started to move the black cable, and the lights blinked at full power for a while. If I moved the cable a little, they stopped. They don't run anymore. Could there be a broken wire that when I shake the motor shield a little, the wire touch and can send the current?