Transistor amplifier keeps flickering between working and off
The transistor is used as an emitter-follower (look it up) that has a voltage gain of only 1. So the output volume will be low level like for headphones.
The transistor is not biased so it behaves as a rectifier producing severe distortion (flickering?).
Your very simple circuit feeds DC through the speaker that a real amplifier never does.