when driving truck made a metal rattling noise then shut off wont start on 1999 Chevrolet S10

it will crank all lights work

1 answer
When I had this happen to me it was the Throttle Position Sensor and/or Crankshaft Sensor.