2motors

const int controlPin1 = 9;
const int controlPin2 = 10;
const int controlPin3 = 11;
const int controlPin4 = 12;
const int enablePin = 3;

int motorSpeed = 0;
int motorDirection = 1;
int motorEnable = 1;

void setup()
{
  pinMode(controlPin1,OUTPUT);
  pinMode(controlPin2,OUTPUT);
  pinMode(controlPin3,OUTPUT);
  pinMode(controlPin4,OUTPUT);
  pinMode(enablePin,OUTPUT);
  
  digitalWrite(enablePin,LOW);
}

void loop()
{
  motorSpeed = 200;
  
  //Moving forward
  digitalWrite(controlPin1, HIGH); 
  digitalWrite(controlPin2, LOW);
  digitalWrite(controlPin3, HIGH);  
  digitalWrite(controlPin4, LOW);   
  analogWrite(enablePin,motorSpeed);
  delay(5000);
  //Moving backward
  digitalWrite(controlPin1, LOW);
  digitalWrite(controlPin2, HIGH);
  digitalWrite(controlPin3, LOW);  
  digitalWrite(controlPin4, HIGH);   
  analogWrite(enablePin,motorSpeed);
  delay(5000);
  //Turn left
  digitalWrite(controlPin1, HIGH);
  digitalWrite(controlPin2, LOW);
  digitalWrite(controlPin3, LOW);  
  digitalWrite(controlPin4, HIGH);   
  analogWrite(enablePin,motorSpeed);
  delay(5000);
  //Turn right
  digitalWrite(controlPin1, LOW);
  digitalWrite(controlPin2, HIGH);
  digitalWrite(controlPin3, HIGH);  
  digitalWrite(controlPin4, LOW);   
  analogWrite(enablePin,motorSpeed);
  delay(5000);
  
}