The third pin makes a switch with the outer connector.
With no jack connected those two pins are short, with a jack inserted one of those pins is connected to the outer and the other is open circuit.
It works like pluginng headphones into an MP3 player, it cuts out the speaker. You might want to use it to switch supplies or something similar.