The role of the third man is to prevent damage. In other words the role of the third man is to prevent runs.
The third man is positioned off side behind the wicketkeeper at the boundary. He is normally in a 45° angle and has to cover a wide area, everything behind slips and wicketkeeper.
Teams normally have no third man during Test-matches, because they prefer playing aggressive instead of defensive.