How to Implement a Remote Controlled Line-Follower?

My group and I are trying to implement a line follower with two IR sensors and an IR remote, but are having issues with implementing the remote. When we upload this code, only one motor moves repeatedly regardless of the if-else loop. We ran tests using Serialprintln and saw that while the IR sensor would detect the changes in light and upload it to the serial monitor, the motor would continue to move. I cannot think of a way to implement this, so could anyone suggest or direct me in the right path? Thank you so much!

#include <IRremote.h>
#include <IRremoteInt.h>

#define IR_SENSOR_RIGHT 12
#define IR_SENSOR_LEFT 13
#define Button_1 0xFFA857
#define Button_2 0xFF9867

#include <IRremote.h>
#define irPin 5
uint32_t Previous;
IRrecv irrecv(irPin);
decode_results results;

// Motor A - Left
 
int ENA = 3;
int IN1 = 4; //swapped with IN2 with wiring
int IN2 = 2; //swapped with IN1 with wiring
 
// Motor B - Right
 
int ENB = 10;
int IN3 = 7;
int IN4 = 8;


void setup() {

  pinMode(IR_SENSOR_LEFT, INPUT);
  pinMode(IR_SENSOR_RIGHT, INPUT);
  
  pinMode(ENA, OUTPUT);
  pinMode(ENB, OUTPUT);
  pinMode(IN1, OUTPUT);
  pinMode(IN2, OUTPUT);
  pinMode(IN3, OUTPUT);
  pinMode(IN4, OUTPUT);

  Serial.begin(9600);
  irrecv.enableIRIn();

}
void loop() {
  if (irrecv.decode(&results)) {
    if (results.value == 0xFFFFFFFF) {
      results.value = Previous;
    }
    Serial.println(results.value, HEX);
   

    if (results.value==Button_1){
       Serial.println("on");
        movement();
        
    }
    else if (results.value==Button_2){
       Serial.println("off");
        cease();
        
    }

         
   irrecv.resume();
   }
}

void movement() {
  Serial.println("Test");
  int rightIRSensorValue = digitalRead(IR_SENSOR_RIGHT);
  int leftIRSensorValue = digitalRead(IR_SENSOR_LEFT);
  // declaring the names of the sensors after making them digital read. digitalRead reads sensors 


   //If both sensors not detecting the line, it will keep on moving 
  if (rightIRSensorValue == LOW && leftIRSensorValue == LOW)
  {
    
    digitalWrite(IN1, HIGH);
    digitalWrite(IN2, LOW);
    digitalWrite(IN3, HIGH);
    digitalWrite(IN4, LOW);
    analogWrite(ENA, 150);
    analogWrite(ENB, 150);
    Serial.println("low low");
    
  }
  //If left sensor detects black line, left motor turned on and right motor tunred off to turn left
  else if (rightIRSensorValue == HIGH && leftIRSensorValue == LOW )
  {
    digitalWrite(IN1, HIGH);
    digitalWrite(IN2, LOW);
    digitalWrite(IN3, HIGH);
    digitalWrite(IN4, LOW);
    analogWrite(ENA, 150);
    analogWrite(ENB, 0);
     Serial.println("high low");
    
  }
  //If right sensor detects black line, right motor turned on and left motor turned off to turn right
  else if (rightIRSensorValue == LOW && leftIRSensorValue == HIGH )
  {
    digitalWrite(IN1, HIGH);
    digitalWrite(IN2, LOW);
    digitalWrite(IN3, HIGH);
    digitalWrite(IN4, LOW);
    analogWrite(ENA, 0);
    analogWrite(ENB, 150);
     Serial.println("low high");
    
  } 
  //If both the sensors detect line, Robot stops 
  else 
  {
    digitalWrite(IN1, LOW);
    digitalWrite(IN2, LOW);
    digitalWrite(IN3, LOW);
    digitalWrite(IN4, LOW);
    analogWrite(ENA,0);
    analogWrite(ENB,0);
     Serial.println("high high");
    
  }
}
  
void cease() {

    Serial.println("stop");
    digitalWrite(IN1, LOW);
    digitalWrite(IN2, LOW);
    digitalWrite(IN3, LOW);
    digitalWrite(IN4, LOW);
    analogWrite(ENA,0);
    analogWrite(ENB,0);
    
}

**updated to include format tags, I apologize.

Your loop() seems to be missing any motor related commands. It only decodes IR messages.

But, it's hard to tell since you didn't place the code in code format tags, as suggested in the forum guidelines... it makes it quite hard to read.

suggest you add code to process commands from the serial I/F that report the sensor values and can turn either, both and stop the motors to verify all the functionality