Check the connections between the motor driver board and the motors. Check if the wires are securely attached. If the motor driver IC overheats, it may temporarily shut down to prevent damage. Allow the motor driver to cool down and avoid high-speed operations for a long time. Also, check if the battery is fully charged.
You can also use a smart car shield like this: Smart Car Shield For Arduino - Share Project - PCBWay