L293D rotates my motor only one direction

Hello I have an RC car which has two 3v motors (one for left/right and the other one for forward/back). The left and right motor is working fine but when I try to rotate the other motor it rotates only back. I’ve tried the motor separately and it works in both direction without the controller.

I’ve also attached the wiring. The green and orange wires are just for a bluetooth module.

My code is the following:

  int enablePinMotorAF = 3; 
  int in1PinMotorAF = 5;
  int in2PinMotorAF = 6;
  int enablePinMotorLR = 11;
  int in1PinMotorLR = 10;
  int in2PinMotorLR = 9;

  boolean reverse = true;

void setup() {
  pinMode(enablePinMotorAF, OUTPUT);
  pinMode(in1PinMotorAF, OUTPUT);
  pinMode(in2PinMotorAF, OUTPUT);
  pinMode(enablePinMotorLR, OUTPUT);
  pinMode(in1PinMotorLR, OUTPUT);
  pinMode(in2PinMotorLR, OUTPUT);
}

void loop() {
  //go forward  ->not working 
  analogWrite(enablePinMotorAF, 230);
  digitalWrite(in1PinMotorAF, reverse);
  digitalWrite(in2PinMotorAF, !reverse);

  delay(3000);

  //go back -> working
  analogWrite(enablePinMotorAF, 230);
  digitalWrite(in1PinMotorAF, !reverse);
  digitalWrite(in2PinMotorAF, reverse);

  delay(3000);

  //go right -> working
  analogWrite(enablePinMotorLR, 230);
  digitalWrite(in1PinMotorLR, !reverse);
  digitalWrite(in2PinMotorLR, reverse);

  delay(3000);

  //go left  -> working
  analogWrite(enablePinMotorLR, 230);
  digitalWrite(in1PinMotorLR, reverse);
  digitalWrite(in2PinMotorLR, !reverse);

  delay(3000);
}

Do you have any idea how can I solve this problem and to make it work?
Thank you.

  pinMode(in1PinMotorAF, OUTPUT);
  pinMode(in2PinMotorAF, OUTPUT);
  pinMode(enablePinMotorLR, OUTPUT);
  pinMode(in1PinMotorLR, OUTPUT);
  pinMode(in2PinMotorLR, OUTPUT);

To me, it is stupid to use in in the name of an output variable.

  analogWrite(enablePinMotorAF, 230);

The enable pin does what, EXACTLY? I was under that impression that something was either enabled or it wasn't. What does 230/255ths enabled mean?

You can see the variables declared which indicates the number of the pins.

The two enable pins are used to control the speed: 230 would be the maximum speed and 0 is when the motor is stopped.

Your picture shows Enable2 connected to pin 6. Your code says otherwise.

You're right. That can be the problem. I'll check this when I get home and post the result.

You were right PaulS. The pin declaration was the problem. I just had to swap pin 3 with pin 6 and it is working fine.
Thank you very much for your help.

Now appeared a new problem. I tested this one more time and every command works fine but the accelerate/brake motor rotates very slow and the left/right motor is just shaking. I've checked with a brand new battery too and I have the same result. Before this test it worked and I did not change anything. What can be the problem?