Technically one could sell the account including the phone number (account transfers are allowed), and THEN someone could get a new phone number if they moved out of the area code (or presumably if the transfer was out of the area code). Either way, you'd lose your phone # if you sold the account. Also, I imagine that selling the account isn't strictly legal, but AT&T does allow the transfer of responsibility/ownership of an account.