Simple transistor circuit
Whatever you have driving the base is not connected to a common ground with the rest of the circuit.

To turn on a NPN transistor, the control current flows into the base and out the emitter.  You have provided no path for that current coming out of the emitter back into whatever voltage source is driving the bottom of the base resistor.  In the context of your schematic, you need to connect the emitter of the transistor to the same ground as the bottom of the 3.3 V source.

The strange thing is that the light is on instead of always off.  With no base current, the transistor should be off.  This indicates something is not as you have it wired, or the transistor is connected incorrectly or is damaged.