If you want to unlock your phone to sell it, simply follow the Step 1 guidance, confirm the unlock with your network operator, and factory reset your iPhone.