Problem with a relay
If you really using the relay you linked to: that is a bistable relay, which means that current through the coil in one direction switches it to one position, and you need current through the coil in the other direction to get it in the other position.



The behavior that you seem to expect is that of a normal, monostable relay.