Without knowing more about your bike, it's hard to solve your problem based on just the info above.
In any case, a good first step to ensuring this problem doesn't occur again is to make friends with a gas additive called "Seafoam"...
When your fuel tank is near empty, first add about 3-4 ounces of Seafoam, then fill the tank as normal.
Then ride the bike for 10-15 miles, to get the Seafoam/fuel mix up into the carbs.
let Seafoam do its thing, let the bike sit for 3-5 days.
Then burn off that tank of gas as normal.
After using Seafoam mixed with fuel tank per the can's directions at least once every other month, most riders experience better driveability, and a "happier" bike in general. This of course assumes that your bike is otherwise in reasonably good tune and good shape.
Seafoam is available at most auto parts stores (and now even some Walmarts) for between $6-$9 per pint container.
For still more info, visit: