The deal with Petcocks, is 3 stages. Normal or Run draws fuel from the top of the inner tank fuel tube. Reserve draws it from the bottom of the tube, both require a vacuum source to open the fuel valve on the bottom, this valve prevents the carbs from flooding should the float valves leak a little in the carbs. Prime is the system that pushes open the petcock valve and lets fuel into the carb without a vacuum source. I suspect the vacuum hose might have a crack on it or fallen off. Try running it on prime to see if the petcock is an issue.
This is entirely correct, keep in mind: in prime (if the bike is equipped) it draws from the lower "reserve" pickup. Meaning if you drive around in the prime position and "run low" on gas, you are actually completely empty and stuck.
My guess: out of fuel and the continued cranking on the side of the road has diminished the battery...