Wayne, Billy is right. About halfway down from the tank to the bottom of the bike, the vent line has a tee. The purpose is to allow the vent line to still...vent, if/when the bottom end of the hose gets plugged. Which can happen from road spray in heavy rain. If the bike started once you opened the gas cap, that's your first clue; the vent ain't venting. Sorry for the redundundundancy!

If you had been listening closely when you opened the cap, you would have heard a "whooshing" sound due to air pressure equalizing in the tank.