Mine had the same problem, turned out to be the distributor, but it can also be the coil, ignition module (both under the battery as is the earth point), ECU, ignition switch, immobiliser or wiring.
You have to check the whole system backwards from the plugs to check your getting power between each part.