Output pin cannot drive a relay

after setting the pinMode, the circuit works fine finally
thanks 8)