L298P motor shield wont work properly

That truth table is good, but missing two pins. Those are the inputs for direction? How are the two enable pins set for those results?

edit: I would not use the PWM until I got the motors working correctly strictly on-off and the correct direction. Use digitalWrite() as an on-off switch. How does that do?

Hi , first, yes the input pins are for direction, the enable pins are set to a constant speed like analogWrite(motorRE, 200).

And second, thanks for your suggestion on testing with digitalWrite() first!

The two motors now work correctly as I tested with the following sketch

int motorLE = 7;
int motorLI = 6;
int motorRE = 5;
int motorRI = 4;
int forward = 0;

void setup() {                
  pinMode(motorLI, OUTPUT);  
  pinMode(motorRI, OUTPUT);
  pinMode(motorLE, OUTPUT);
  pinMode(motorRE, OUTPUT);
}

void loop() {
  int value;
  
  if (forward ==0){
      digitalWrite(motorRI, HIGH);
      digitalWrite(motorLI, HIGH);
      forward = 1;
    }else{
      digitalWrite(motorRI, LOW);
      digitalWrite(motorLI, LOW);
      forward = 0;
    }
  digitalWrite(motorLE, HIGH);
  digitalWrite(motorRE, HIGH);

}

So the question now is if my motor board is supporting the PWM signals correctly?