Another favourite for petering out is a blocked air hole in the fuel cap. By the time you have checked the fuel level - by taking the cap off - the fuel flows again, but only for a while!
I've recently had the taps off my MK5, and found that the reserve passages on both were blocked with fine rust particles that had got through the gauze. Although there was a good gallon in the tank, it wouldn't come out once I went on to reserve. I guess a bit was splashing into the main passage while under way, but it faltered when stationary. They blew through once dried out, but draining the tank was not an option by the side of the road.
Cheers for now
Doug