Which fuse was blown and replaced?
Apparently the tangled harness created a short circuit some where and hence got P0107, P0642 and P1749, all sensor circuit low.
Guess a 5V power supply in ECM was shut down due to the short.
Are you sure the harness is still good electrically?
Try to run it...