New weird issue

I don't think it is the distributor gear because it ran fairly well before I turned the engine off. If it was the distributor gear the car shouldn't have run.