After your phone has been either given to you new or had a factory reset, you will be given the opportunity to restore your phone from a backup file.
***Please note that depending on how big your restoration is, it might take up to a week to fully sync up. Your device will be fully functional during this time though.***