Thanks Stefan
Maybe its the weak connection between the wires and the breadboard as you have pointed out. Yes all wires are soldered to the motors and they are not loose so that is not the issue. I will solder half of the jumper wire to the power supply cable and will let you know if that solves it.