The machines are called steam engines, which, with external combustion engines, work to convert the thermal energy (the force of heat) of the boiling water into mechanical energy.
The heat resulting from the burning of certain amounts of coal boils the water that turns into steam. That steam is captured and directed to feed a series of elements that start the machine.
Thomas Newcomen invented the steam engine in 1705. With the help of colleagues such as physicist Robert Hooke and mechanic John Calley, Newcomen was the first to make a steam engine proper.
Some years later it was used as a basis for several of the most important inventions of the Industrial Revolution, such as the locomotive, steam ships and factories, among other things.
The steam engine and coal revolutionized production in the factories, both objects were one of the drivers of the industrial revolution.