Need help

I just got a 2003 sportsman 400 that had not been run in 2 years. I drained all the old gas and put in fresh gas with seafoam. Replaced the fuel lines and put in a new spark plug. Once I was able to get it running I ran great when it was choked then when the chock was off it would want to die. Then when I rev it up it would back fire any suggestions? Thank you