combining programs?

You should suppress the two braces in the middle of your loop()

void loop()
{
  Serial.print("forward");
  forward();
  delay(3000);
  
  
  Serial.print("pause");
  digitalWrite(enablePin, LOW);
  delay(2000);
  
  
  Serial.print("backwards");
  backwards();
  delay(3000);
  }                              |<------------|
  {                              |<------------|
   servo1.write(180) ;   |                     |
   delay(1000);          | This part of code   |
   servo1.write(0);      | is never executed   |
   delay(1000);          | because of that -----
  }