Controlling 2 servos with an acceleromoter

I’m using the ADXL355 acceleromoter to control 2 servos with a right,left,up,down motion. For some reason unknown to me, only servo2 is working. Can anyone tell me why only one servo is responding? (I switched the servos to test if they worked individually, and they both worked)

//ARDUINO CAR 2 Motors(Controlled in realtime by moving the ADXL3XX
#include <Servo.h> 
Servo servo1;          //declare servos
Servo servo2;
int pos1 = 0;
int pos2 = 0;
const int xPin = 0;
const int yPin = 1;
const int zPin = 2;
void setup() 
{
  Serial.begin(9600); 
  servo1.attach(9);
  servo1.write(90);
  servo2.attach(10);
  servo2.write(90);          
  Serial.println("Time to take control!!!!");  
}
void loop() 
{  
  
//Foward
 if((analogRead(xPin)<310) &&          
    (analogRead(zPin)<405))
    {Serial.print("Foward");
    servo2.write(pos2+45);
  }    
                     delay(500);
//Backward    
 if((analogRead(xPin)>390) &&   
    (analogRead(zPin)<405))
    {Serial.print("Backward");
    servo2.write(pos2-45); }    
                     delay(500);
//Left    
 if((analogRead(yPin)<292) &&
    (analogRead(zPin)<405))
    {Serial.print("Left");
     servo1.write(pos1-45); }    
                     delay(500);
//Right                     
 if((analogRead(yPin)>396) &&
    (analogRead(zPin)<390))
    {Serial.print("Right");
     servo1.write(pos1+45); }    
                     delay(500);
                     
}

Which pins have you connected the ADXL355 to?

What does the serial monitor show?

Lovely indenting style and positioning of curly braces. Not.