Another possibility- if it is a bad pick up coil (a/k/a ignition sensor) the failure generally shows up after several minutes of running. When it cools down it then may run normally again until it is back to full operating temp.