Intake and exhaust valves, intake valve opens to let fuel/air into the cylinder, then closes, combustion takes place and exhaust valve opens letting the burnt mixture out through the exhaust. over time the parts wear and the clearances loosen up..
https://www.youtube.com/watch?v=-OYsUtJtrfo