This might sound stupid or obvious, but is there any chance you ran out of gas? This happened to me one time on a high mountain road in the backcountry. After getting it towed into town, I discovered some part in the gas gauge was broken, showing half a tank when it was actually empty.
Sponsored