If you have no spark and the fuel pump won't price, I'd imagine that those three loose wires probably have something to do with the ECU.
What colour are the wires, and what does the 'connected' end attach to (the ECU, or the motor?) so that we can help tell you where the 'loose' end needs to go.