L298N controller

It is being powered by 5v from the Arduino and the ground runs back to the Arduino.

The pins are connected as such

 int iEnableMotorA = 3;  //Enable Motor A
 int iInOneMotorA = 11;  //IN1 for motor A
 int iInTwoMotorA = 6;   //IN2 for motor A
 
 int iEnableMotorB = 5;    //Enable Motor B
 int iInThreeMotorB = 10;  //IN1 for motor B
 int iInFourMotorB = 9;   //IN2 for motor B

I got it to move once but for it to move more I would need to re-flash the Arduino. With the current code it just makes a beeping noise. Any idea what that means? Yes I see that printed message OK.