How does a Flywheel Work?

The way a flywheel works is by the starter gear coming out and making contact with the flywheel in turns turning the crankshaft were the piston’s are connected and makes the engine fire and spins the whole time the engine is running.