Complex sentence: The two outer rails give the wider gauge, while one of the outer rails and the inner rail give a narrower gauge-one of the three rails is common to all traffic.
Split into simpler sentences: The two outer rails give the wider gauge, while one of the outer rails and the inner rail give a narrower gauge. Thus one of the three rails is common to all traffic.