Okay, a few things:
First, I agree in that this is a totally electrical problem that's causing a mechanical one. It has to do with either 1 of 2 things: how your TGV's are set up (1) or motor timing (2).
1. Without proper signal output (meaning properly connected to the right terminals, as well as the proper vaccum lines, etc.) you've essentially got what equates to miss-fire / mis-sequencing of the TGV's due to bad or missing data. (example: take a car with an old school distributor, and just swap the spark plugs wires around. The mis-firing due to the sequence will cause it to almost not run, as you'll be firing off when the cylinders are in the wrong position).
2. When this motor was put in, its was somehow put out of time. The clearance in the motor will allow it to run, but you'll have pretty ineffiencent timing. Get a timming light and if you can get it to idle, check the timing degrees to the proper setting. If you keep driving, essentally the computer is attempting to retard the timming to make up for all the mis-firing its seeing at the sensor level.
I tend to lean more towards 1. Now with that said, you can either:
A. Attempt to reconnect the TGV setups properly. You'll need to get a manual to see where the wires hook-up, and check to see if mis-sequencing has fouled whats looks like 3 of the TGV's.
B. Do what a lot of people do and delete them all together. There are a TON on threads on that, so no need to write any more of a novel here. TGV deletes are a common performance Mod.