Earphones keep turning up and down my volume on my iPhone?

Apple earbuds, iPhone 6s, the volume doesn't creep up or down it'll happen rapidly and occasionally it will pause what I'm listening to as well. I know that the little remote on apple earphones can pause and control volume so I was wondering if it's more likely my earphones are broken or my actual iPhone, or maybe I need to clean the headphone jack.

Lean plug on ear phone

Sounds like maybe the remote in the earphones is malfunctioning and causing it but the only way to know for sure and the easiest way is just by using another pair of earphones. If it continues then its your phone, if it doesn't then it was the earphones.

  • Why is my new iPhone 8 freezing the music on the lock screen and turning the volume up and down itself? When I'm listening to music and then click home to light up the screen to change a song or whatever the song will be almost over and it'll say it's at 0:30 seconds? And then when I go to Instagram it just turns the volume up and down without me pressing any volume buttons?
  • Why is my iPhone 5 turning off and not turning back on? This has happened twice now. My iPhone 5 has turned off in the middle of the night with a full charge and off the charger, and when I try to turn it back on it takes a couple tries. Has anybody experienced this?
  • Volume on my iPhone 4S doesn't work only when I put the earphones on? Today I tried listening to music on my iPhone 4S, only to find that my volume adjuster had disappeared. And just to clarify, when I say that it disappeared, I mean that when I press the volume buttons on my phone, I see the speaker icon but the gauge bar is gone. When I put my earphones on it works perfectly I tried resetting it but nothing seems to work. I was wondering if I can get a replacement for my phone I have sprint
  • Replace iphone 5 speaker and volume down button? Fix it or something? So this morning I dropped my phone in the toilet with an otterbox case on it. Everything is fine except for my speakers, one of which is full sounding and the other doesn't work at all. My volume down button also doesn't work. What do I do? I've had my phone since January