Bike sitting for 2 years eh. Was there fuel in the tank? Did you clean it out or just add more? My guess would be a seized fuel pump. Do you hear a whine for a second when you turn the power on? Does the RID come on - showing fuel level and oil temp? If the answer to both these questions is yes, then a hose inside the tank could be split or plugged. You will need to take the tank apart either way. Look in the Hall of Wisdom for instructions and , if necessary, information on a cheaper than OEM fuel pump replacement.
Whether that's it or not, it's probably worth buying a can of DeoxIT and some dielectric grease. Clean and grease the fuel pump connector. Pull, clean and grease all the relays and fuses (the fuel pump relay and fuse for sure).