simcard not found emergency calls only

I use the glory of Samsung Galaxy. When I flashed cm12, my phone is unable to detect a sim card when I've dialed ## 4636 ## I can not even turn on the radio there. When I chose the preferred network option, this indicates unknown.
The main problem is that my phone indicates a number but can not detect a SIM card. Thank you for helping me and giving me solutions. His request.