I found the solution
There’s nothing wrong with the earphone itself. I played about and realised that the earphone jack is the issue, it’s not cleaned properly. Try get pressurised air in a can and blow out the debris or just clean the jack, I found that this fixed the issue for me.