If you plug in the headphones not securely during playback, the sound may come from the speaker.
Unplug the headphones, and then insert them securely.