Tonight on my way home I ran out of gas.

but my gas gauge still said I had about 1/8 of a tank left and my low feul light only came on about 2 miles before this I walked the rest of the way home and got some gas put it in and it started right back up but I am trying to figure out what was wrong that it was not showing me near empty before it seemed to run out. also this tank only had 308 miles on it (typical get about 350 on a tank)

The symptoms where :
it started seeming to have no power and was jerky and just chugging along and after just a little bit of this it stopped everything and cut off and the engine would not start up again realy(started twice but would not move and would stall out again when I tried).

so what I am asking is what would cause this ? fuel pump ? gas gauge ? whatever else ?

Need more details ? just ask and I will do my best to answer.
Car details are in sig.


2000 Silver SE Sport V6 MTX, B&M shifter, SVT exhaust, 75K on the clock.