When the 96 was running, was it throwing any codes? If so, did you check to see what they were?
Did you ever check to see what codes your 97 was throwing, with the old engine? If so, what were they?
Did you take the spark plug wires off, when you swapped engines? If so, are you sure you got them back on right?