The phone cannot be activated because it is locked or for some other reason. Get the ESN number and call the carrier to find out why exactly the ESN is bad.
The ESN is the electronic serial number, a code unique to each and every cell phone manufactured. If you're getting a bad ESN message, it most likely means that the phone has been reported stolen and is now unusable.