If so, then you will find the next two links handy. I did. My son broke his screen and while I was able to repair it, other damaged occurred because it was so badly broken. Fortunately while he lost data, I was able to restore the phone to “new” state using these links. From there he went on to add his favorite apps, etc.
Important note! On the later versions of MacOS, you no longer have access to iTunes and you cannot download it and install it. So don’t waste your time doing that like I did. 🙂
Links:
If you forgot your iPhone passcode – Apple Support
If you see the Restore screen on your iPhone, iPad, or iPod touch – Apple Support
If you can’t update or restore your iPhone or iPod touch – Apple Support
If you see the Restore screen on your iPhone, iPad, or iPod touch – Apple Support