Master reset 

1) *#7370#, then enter 12345 (This is the default security code unless the user has changed it) and then Yes. The phone then wipes all apps and phonebook contacts on the internal memory.