you need to reset the timing the distributor did not go back in correctly
Try replacing the distributor cap.
To fix a Mazda 626 distributor, start by diagnosing the issue, which may involve checking the ignition system, wiring, and connectors for any signs of wear or damage. If the distributor cap or rotor is worn, replace them, as they are common points of failure. Ensure the ignition timing is correctly set after reassembly. If problems persist, consider replacing the entire distributor assembly or consulting a professional mechanic for further diagnosis.
Try replacing the distributor
no spark to plugs
Assuming you mean distributor cap and rotor, yes, if you mixed up the firing order.
try replacing your distributor, distributor cap, rotor, and maybe the spark plug wires.
mine did same, it was the distributor caps , try replacing both caps, car has 2 . G L
One needs to look at the module in the distributor (test it)and the ESC system (sensor, module, and harness connection). Replacing the whole ignition system is expensive and much more than swapping style of distributor.
are the plug wires in the correct sequence for firing order? Are the coil wires all connected? Did you remove the distributor and possibly put it out of time?
try to get a new ignition rotor
Check your timing, if it goes out of time a small margin it won't start properly or not at all.
try your ignition control sensor located in your distributor