How to recover android
If you have a Backup, just Restore it.

or, there is two way :

Use something like :  EASEUS Data Recovery Wizard Professional


  //for Recovery...


or another way ;

Download the rom and flash it for fix.

Where can I find stock or custom ROMs for my Android device?