I assume you refer to the fuel pump relay, the black/yellow wire from the relay should go to the engine harness, here I expect that is then routed to the ECU which 'grounds' one side of the relay coil to turn the fuel pump on. When the ignition is turned on the ECU turns the fuel pump on for a few seconds to fill the injector header rail, then the pump is turned off. Not too sure but assume the ECU then needs to see a signal from the crankshaft position sensor in order to know the engine is turning over and to know it can turn the pump on. If the engine isn't turning over / running there will be no power to the pump following the initial few seconds following ignition on.