Trying to connect 12V DC irrigation pump using Relay and power supply

gwareloth:
Guessing about voltage is dangerous: post a proper circuit diagram, then there'll be no guessing.

And did you do what I suggested, and test the relay on any pins you care to name with a blink type sketch?

The sketch is the same as the following one:

But, instead of the 12v battery, there's a cable connected directly to the electric socket

Look at the attachments, thank you!