ESP8266 doesn't boot properly if GPIO pin connected
Read this.

Your 3k resistor is enough to pull GPIO0 low during powerup and the ESP8266 is likely going into serial load mode. 

Use a FET to drive your relay if you want to use GPIO0 .....and put a diode across the coil.