i'm not sure, but make a back up in iCloud first do this:
How to back up your iPhone, iPad, and iPod touch - Apple Support
Than try this:
Restore your iPhone, iPad, or iPod to factory settings - Apple Support
If this doesn't work, contact Apple Support.