My phone

My ancient flip phone does the same thing often-taking the battery out and back in DOES make it work again somehow..and I have never lost contacts, etc in my phone….
It DOES reset it so it will turn on…..but does NOT take it back to factory settings. My tech savy college kids told me about it one day—when I thought I had lost if for good.