On a Canon 100-400 L
Mode 1 is IS operating in both horizontal and vertical planes.
Mode 2 is IS in one plane, so if your panning horizontally, IS works on vertical movement, and vice versa.
Mode 3 activates IS when shutter is activated, not in the pre-shutter stages
You could use all three modes for photographing a steam train.