My android earphone socket doesn't work
From the sound of your question, it sounds like your earphone jack is faulty and isn't recognising that earphones are connected.

You would have to send your device for repair.