FLY THE AIRPLANE! Follow the specific procedures for the airplane. If the automatic stuff doesn't work, FLY THE AIRPLANE!
In the 747 Classic it's Autopilot Off, rotate, Autothrottle off, Go-Around thrust, Flaps 20, Positive climb, gear up, 1000', climb thrust.
In the 744 it might be something like TOGA, rotate, Flaps 20, positive climb, gear up, LNAV, VNAV.
Other airplanes will be different...