What happens after an iPhone has its data auto-erased?
Once erased by the failed passcode attempts, the phone will be put in Activation Lock (assuming you have iOS 7 or later and have enabled Find My iPhone). You will need to unlock it using the Apple ID it is linked to. From there, you can restore the phone from a previous backup.