How steam boilers work?

Steam boilers work by boiling water to generate steam. The steam then is used to heat the engine.