The rotor spins around inside the distributor. As it turns, it comes into contact with the terminals for each spark plug on the distributor cap. When this happens, it sends current at that precise moment to the spark plug, which then ignites the air/fuel in the cylinder at exactly the right time.