Relay curcuit not switching on

If the relay is not on but your lamp is then you have used the normally closed contacts in place of the normally open ones.

You have also miss wired the transistor if the relay is not coming on and off, or you have forgotten to set that pin as an output in the setup function.