Default Problem with external speaker

So I've a weird problem. My external speaker is not working.. well partially

The thing is if I tap my phone (near the speakers)it starts working, for a while and then back to square one Any idea what I should do?