You can either include it in the package when you sell the phone, or you can reach out to the AppleCare Support Team and they will refund you a prorated amount depending on how much AppleCare+ you have left. You would not be able to transfer it over to a new phone since it is tied to the device that it was purchased with.