Earbud problems

Hey! So this isn't related to periods, but my earbuds only work if I hold them in a certain position, otherwise no sound will come out of them. Anyone know how to fix this??