Adapter skips/pauses songs and activated siri?

I have an adapter (or a "dongle") used to plug my beats headphones into my iPhone 7 and whenever i use it, no matter what set of earphones, it constantly pauses music and skips songs and even activates siri. Is there a way to fix it or do i have to buy a new one?

There are probably some bad connections between plugs and jacks,
or a broken wire in a cable.

The way those remotes work is by momentarily breaking a connection.
If connections are broken at random, you will get what is happening to you.