1. Five wires in the earphone are headphones with a microphone.
2. There are three earphone cables and two microphone cables.
3. Just connect them according to the color. Don't connect them wrong. If you connect them wrong, you may not be able to use them without sound or microphone.
4. If the wires are not interrupted, if they are broken from the plug part, they can also be connected according to the original ones. If they are separated, you can use a multimeter to measure them. One is the ground wire of the earphone, the other two are the left and right channel wires of the earphone, and the other two are the microphone wires. Just connect them as required.
Many famous brand manufacturers strive to keep these values as low as possible. Different wire rod manufacturers have developed many methods to restrain these unfavorable factors such as transmission, but these methods are always divided into three types. The first is to use better and more suitable conductors for effective transmission, and the typical representative manufacturer is Yincai. The second is to strengthen the structure of insulating materials and shielding to prevent the influence of all external factors, which is recognized by all manufacturers, so they attach great importance to it. The third is that the unique weave structure of the conductor can offset the generation and skin effect of some magnetic field vibrations, such as Jinbao and Music Ribbon.
Source: Baidu Encyclopedia: Headphone Wire