I have tested the above code with everything connected,and they work perfect except the motors are not turning
Third, those delay() commands are likely to screw things up because the Arduino can do nothing else while it works through the delay period. Study the technique in the Blink Without Delay example in the IDE and look at the example I wrote in the first post of this Thread.
...R