Stuck on activating a relay

I tried delay(10); and it works 1 time, so it activates the switch once, but not again