What is the science behind wheelie?

all that happens is you pull up the handlebar and with enough balance and power the bike should carry on moving