raspberry pi – Cannot get motors to worth with Rasberry Pi Pico WH

I imagine it is most likely to do with the wiring. I used pins 14, 12, 11 and 10 to connect to the motor driver board and connected GND from the Pico to GND on the motor driver board as well. I followed the wiring from the pin layout of the board using this Raspberry Pi pinout site using pins 19, 21, 24 and 26 for controlling the motors. I am not getting any error messages when using the following code inside of minicom but the motors are not moving at all either

>>> from machine import Pin
>>> import time
>>> 
>>> # Motor A control pins
>>> motor_A1 = Pin(9, Pin.OUT)
>>> motor_A2 = Pin(10, Pin.OUT)
>>> 
>>> # Motor B control pins
>>> motor_B1 = Pin(7, Pin.OUT)
>>> motor_B2 = Pin(8, Pin.OUT)
>>> 
>>> # Move Motor A forward
>>> motor_A1.value(1)
>>> motor_A2.value(0)
>>> 
>>> # Move Motor B backward
>>> motor_B1.value(0)
>>> motor_B2.value(1)
>>> 
>>> time.sleep(2)
>>> 
>>> motor_A1.value(0)
>>> motor_A2.value(0)
>>> motor_B1.value(0)
>>> motor_B2.value(0)

I read this post ont the Raspberry Pi forums as well asking how to do the same thing I am trying to do and followed the wiring discussed on the thread.
Here is the actual wiring of the boards

Pico board wiring
Pico board wiring
Pico board wiring
Pico board wiring
enter image description here

Here is the pins I used highlighted in red in the Pico datasheet
enter image description here

Read more here: Source link