Hello and welcome to Android Central! Did you log out of your Google account on the phone by chance? If you store your contacts in an external source like a Google or Microsoft account, logging out of that account will remove the contacts from your phone.