First you need to check with only a led and a resistor (180/220 Ohm) if the output is turned high.
Have you defined the port at output ?!
If the led is litt like it should, you know your sketch is working.
You need to check if the arduino can deliver the current needed for the relay to switch.
Be aware of the fact that is the voltage to the relais switches to "low", there can be an enormous voltage spike that can ruin you're arduino.
Check on the forum and site how to avoid this by using a decoupling diode with maybe a transistor to switch the relais.
It is always best to deliver the complete code between code block tags!!!