Usually there is software that comes with the phone purchase,to it set up, if it is an Apple you can go to there web site for instructions or ask the store,
If you old phone is an apple just go to your cloud
Thanks! Your answer is awaiting moderation.