If a steam locomotive runs-out of water while it is operating, either the firebox plug will melt (which is embarrassing for the fireman / driver and expensive to fix), or steam pressure will rise extremely quickly until either more water is supplied, or the boiler explodes.