No SIM Card detected, Emergency Call Only After Flashing Custom ROM AND Stock ROM [Sony Xperia AcroS] Yesterday i've decided to check some of the custom ROMs for my Sony Xperia Acro S.
With locked bootloader i installed a CWM Recovery and flashed a ROM.

The ROM Worked and the signal worked and i've made few calls to check if it is working or not.

i decided to check another ROM, it caused a bootloop.
so by using the Flashtool i flashed the stock ROM again and installed the recovery again and flashed the first Custom ROM again to check it out more.

Sadly, the mobile says "Emergency call only" and " No SIM detected ".
i tried the SIM card on another phone and it's working.

so, i flashed the STOCK ROM that i used to flash many times and it should be 100% working, but NO, The problem is still there.

when i check for the IMEI number by the  * # 06 #  it says "no newtork connection "

I Can't find a solution online, so please help me.

TL;DR

Things i have made before the problem:


Flashed a Custom ROM had a bootloop, Flashed the Stock ROM and then Flashed another Working Custom ROM.


Things i have made trying to FIX:


Flashed the 4.1 Stock ROM.
Flashed the Old Android 4.0 ROM and updated it via Sony's PC Companion.
Checked the IMEI Number = fail to find and it says "No Network Connection"
EDIT: This fix was temporary. The problem returned the next day. Sorry.

After I flashed Cyanogenmod 12.1(upgraded to lollipop) to my nexus 5 I had the "no Sim Card". It is a very popular problem for this ROM or Lollipop in general. I try shimming the sim, Updating PRL etc... and nothing was working.

Here is what I think finally fixed it for me:

In dialer keypad: *#*#72786#*#*     (this will wipe the carrier settings)

reboot if your phone didn't automatically. Your phone will go through activation in about 5 minutes, re-gathering the correct carrier settings just like when you first bought it.

Tip was found here:
https://help.ting.com/hc/en-us/articles/205428508-Completing-Activation-for-Your-Nexus-5-or-6

Hope this helps someone, anyone.