well #1 does the crank sensor work / plugged in ?
#2also fyi if the cams are off by one tooth the ecm wont let the car fire. to test for this unplug both cam sensors.
# 3 the large connector above the turbo if its not fully plugged in it will cause issues.
Now that's thinking out of the boxer
fyi all 05 + legacy's have built in code reader