You can use a multi-meter to check your battery power bank output. If (1) no motor running is 4.5V, (2) one battery is 3.0V, (3) two batteries is 2.0V, then it means your battery is too weak to drive two motors. If you don’t have a multi-meter, you can DIY a LED based battery status indicator as follows: (a) connect a LED to series resistor, then connect one end of resistor to one end of battery power bank output, and one end of LED to the other end of battery power. Now you can test your L298N driver again. If for 0M, 1M, 2M LED shows Very Bright, NVB, NB, then time to buy new batteries. – tlfong01 just now Edit
guys, I’m using a pi 4 for a rover I want to build and I have 2 L298N drivers. I connected them using a breadboard to my pi so I don’t need that much GPIO pins but only one pair of motors is working and when I unplug the driver that works the second pair of motors on the second driver are working. can u pls help me, I already double triple quadruple whatever checked my cables and connections but I can’t find the error isn’t there enough power output?