How does a headphone jack work?

it has 3 conductors at the end, whre 1 remains common and other two are independent, so that both left and right speakears are independent and are stereo.