Speed and direction control of x2 3V DC motors

Hello,
I want to control two DC motors with a L298N module.
I used the following code:

const int IN1 = 3;
const int IN2 = 4;
const int IN3 = 5;
const int IN4 = 6;

const int ENA = 2;
const int ENB = 7;

void setup() {
 pinMode (IN1, OUTPUT);
 pinMode (IN2, OUTPUT);
 pinMode (IN3, OUTPUT);
 pinMode (IN4, OUTPUT);
 pinMode (ENA, OUTPUT);
 pinMode (ENB, OUTPUT);
}

void loop() {

 analogWrite(ENA, 255);
 analogWrite(ENB, 255);
 
 digitalWrite(IN1,HIGH);
 digitalWrite(IN2,LOW);
 digitalWrite(IN3,HIGH);
 digitalWrite(IN4,LOW);
 
}

After uploading the code i have no result.
Is there a mistake in the code? or it might be because of the power source i use?
I mention that as a power source i use x4 AA rechargeable battery of 1.2V each connected in series.
Also i mention that i checked the conection twice.

Thank you!

Please use code tags, up to the left in this window.
Attach the wiring. How do You exprct us to check it and find any mishaps?

Here are the code tags:

const int IN1 = 3;
const int IN2 = 4;
const int IN3 = 5;
const int IN4 = 6;

const int ENA = 2;
const int ENB = 7;

void setup() {
  pinMode (IN1, OUTPUT);
  pinMode (IN2, OUTPUT);
  pinMode (IN3, OUTPUT);
  pinMode (IN4, OUTPUT);
  pinMode (ENA, OUTPUT);
  pinMode (ENB, OUTPUT);
}

void loop() {

  analogWrite(ENA, 255);
  analogWrite(ENB, 255);
  
  digitalWrite(IN1,HIGH);
  digitalWrite(IN2,LOW);
  digitalWrite(IN3,HIGH);
  digitalWrite(IN4,LOW);
  
}

And the wiring diagram

There doesn't appear to be anything powering the Arduino.

What are the motors doing? Maybe your batteries simply can't provide enough current to make them move.

The arduino is powered via USB from my laptop.

Now i added 8 batteries in series and the motors ar working fine at full speed but if i want to decrease the power, for example putting analogWrite value from 255 each to 125 each they will stop working, but for example if i put analogWrite value 255 to 0 for one of them (ex: ENA) and i put analogWrite value from 255 to 125 for the other (ex: ENB) the motor that have the value to 0 will not move and the other will move slowly.

Now my question is: How can i make both of them both work at a lower speed since the power isn't a problem because they both work fine at full speed.