Depends on the old phone. If it has WiFi, just connect to that and copy or sync the files to cloud storage. Or copy the files to an SD card and then copy them back to the phone. Really you should have backups of your files, what if that old phone was damaged and not just deactivated? Backups are easy, getting files from broken things is not.