Need a little help with error code 0261.11

2007 D6n xl  dja00243 Will turn over but will not start. A little shot of either will crank it and runs fine. Will die at idle speed if put in forward or reverse.  Seems that code is for the crank sensor or the sensor on the high pressure fuel pump. Thanks