motor code error

The below is the ESC info. I think that there are too many possible issues that are currently beyond the OP's ability to sort out. the ESC beeps, so it apparently recognizes the commands. No telling what is going on with the wiring, power supplys and such. The OP may require some local help from a parent or hobby shop person to verify wiring and such.

Electric Speed Control (ESC) for Brushless DC Motors

For use with the ELEV-8 Quadcopter Kit. ESC's are used on most RC equipment for controlling the speed of a brushless motor. It is also compatible with a wide variety of 3.3 V and 5 V microcontrollers. Compatible with a standard RC receiver or any 3.3 V or 5 V microcontroller running the proper pulse-width modulation (PWM).

Features:

Programmable with an ESC programming card so you don’t have to use your controller and count the beeps!
5 V BEC (Battery Eliminator Circuit)
High Current rating enables worry free operation of varying sized motors
Compatible with any standard RC receiver that you may have at home
Three-phase electronic control
Cells: 2-3S LiPo Input
Specifications:

Power Requirements: 7.4 – 11.1 VDC
Continuous Maximum Current: 30 A
Communication: PWM
Dimensions: 1.9 x 1.0 x 0.3 inches (48.26 x 25.4 x 7.62 mm)
Weight: 27 grams