Exclamation [Q] After firmware my phone does not see the sim card

Hello everybody! after firmware my phone does not see the sim card, I do not know exactly what was done with the phone, how to return the phone to factory condition completely?
Sometimes when I turn off the phone for a long time and then turn it sees the SIM card, but after restarting again invisible. help me please!