Water pumps ignoring the code

Try this

const int boton1 = 2;
const int bomba1 = 10;

void setup()
{
  pinMode(bomba1, OUTPUT);
}

void loop()
{
  if (digitalRead(boton1) == HIGH)
  {
    // Enciende la bomba 1 durante 3 segundos
    digitalWrite(bomba1, HIGH);
    delay(3000); // Modifica el tiempo aqui, en milisegundos
    digitalWrite(bomba1, LOW);
  }
}


After it works , add more things one by one(or take care of the delays)