Gravity fan does not work when powered by 3.3V ESP8266
The ESP can only supply 12 milliamperes of current. The fan most likely uses a whole lot more. You could for example uses a transistor to turn on the fan.