Sand is used in trains to increase traction between the wheels and tracks, especially in slippery conditions like wet or icy tracks.