Help my line follower is not moving forward

My line follower was working just fine but i need to add a code for a dc water pump when i added the code it just stop working. It was a og arduino uno and i tried to change i had a fake one still it didn't work. Here is my code
// Line Following Robot
// Uses IR sensors for line following

#define LEFT_SENSOR A0
#define RIGHT_SENSOR A1
#define MOTOR_LEFT_FORWARD 5
#define MOTOR_LEFT_BACKWARD 6
#define MOTOR_RIGHT_FORWARD 3
#define MOTOR_RIGHT_BACKWARD 4
#define SPRAYER 7

void setup() {
pinMode(LEFT_SENSOR, INPUT);
pinMode(RIGHT_SENSOR, INPUT);
pinMode(MOTOR_LEFT_FORWARD, OUTPUT);
pinMode(MOTOR_LEFT_BACKWARD, OUTPUT);
pinMode(MOTOR_RIGHT_FORWARD, OUTPUT);
pinMode(MOTOR_RIGHT_BACKWARD, OUTPUT);
pinMode(SPRAYER, OUTPUT);
Serial.begin(9600);
}

void moveForward() {
digitalWrite(MOTOR_LEFT_FORWARD, HIGH);
digitalWrite(MOTOR_LEFT_BACKWARD, LOW);
digitalWrite(MOTOR_RIGHT_FORWARD, HIGH);
digitalWrite(MOTOR_RIGHT_BACKWARD, LOW);
}

void turnLeft() {
digitalWrite(MOTOR_LEFT_FORWARD, LOW);
digitalWrite(MOTOR_LEFT_BACKWARD, LOW);
digitalWrite(MOTOR_RIGHT_FORWARD, HIGH);
digitalWrite(MOTOR_RIGHT_BACKWARD, LOW);
}

void turnRight() {
digitalWrite(MOTOR_LEFT_FORWARD, HIGH);
digitalWrite(MOTOR_LEFT_BACKWARD, LOW);
digitalWrite(MOTOR_RIGHT_FORWARD, LOW);
digitalWrite(MOTOR_RIGHT_BACKWARD, LOW);
}

void stopRobot() {
digitalWrite(MOTOR_LEFT_FORWARD, LOW);
digitalWrite(MOTOR_RIGHT_FORWARD, LOW);
}

void spray() {
digitalWrite(SPRAYER, HIGH);
delay(1000);
digitalWrite(SPRAYER, LOW);
}

void loop() {
int leftSensor = digitalRead(LEFT_SENSOR);
int rightSensor = digitalRead(RIGHT_SENSOR);

if (leftSensor == LOW && rightSensor == LOW) {
    moveForward();
} else if (leftSensor == LOW && rightSensor == HIGH) {
    turnLeft();
} else if (leftSensor == HIGH && rightSensor == LOW) {
    turnRight();
} else {
    stopRobot();
}

}

Welcome to the forum

Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'

Use code tags (the < CODE/ > icon above the compose window) to make it easier to read and copy for examination

https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum

Please post your sketch, using code tags when you do

Posting your code using code tags prevents parts of it being interpreted as HTML coding and makes it easier to copy for examination

In my experience the easiest way to tidy up the code and add the code tags is as follows

Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.

It is also helpful to post error messages in code tags as it makes it easier to scroll through them and copy them for examination

Your sketch never calls the spray() function

Could that be a problem ?

I just imagine a guy with a line following robot in front of him, asking a friend:
"Done. What could I add to my line following robot now?"
"Is your line following robot moving forward?"
"Nope."
"Well, that's a problem dude"
"Why?"
"Never mind. You're looking for something to add to your steady line following robot, right?"
"Yes!"
"If it stands still you could add a pump to water your pots that you have at home!"
"Great!"

suppose the left and right sensor both see a HIGH at the very beginning.
What will the robot do?

Can you confirm there is still a line visible for the sensors?

What happens if you revert and uolad the previous version of code that worked before?