Need help with Electronic Ignition

The engine would backfire when i gave it gas and not accelerate. Runs rough at an idle. I took a ecu that works from another car that i have but got same result. I replaced the reluctor (pick-up coil) and gaped it at .008. I am puzzle. Yes on the unplug of vaccum.