06 outback V new block no spark from dist to plugs

I just bought an outback v with a cracked block although before I Removef the old engine I did start it up and everything worked absolutely fine from electrical standpoint.

Now that I put all the old parts and wires On the new Longblock I’m getting error code number one On the dash when I turn the key on and when I turn the engine over I’m getting spark to the distributor but not to any of the plugs
Please oh please help