Okay kiddo, imagine a big train that goes chugga chugga chugga on the tracks. Have you ever seen the big round wheels on trains? Well, those wheels help the train move forward, but they need power to do that. That's where the cylinder comes in.
The cylinder is like a little engine inside the train. It's a big metal tube that has a piston (like a stick) that moves back and forth inside it. When hot steam (water that has turned into gas) gets pushed into the cylinder, it makes the piston move back and forth really fast. This movement is transferred to the wheels of the train, which makes it go.
So, without the cylinder, the train wouldn't be able to move on its own. It's like the heart of the train, pumping it up with energy to move forward. Pretty cool, huh?