Default [q] sprint galaxy s4 : Unknown - baseband/imei/software version

My phone was previously unlocked... I installed a custom rom and after that my phone started acting up... It wont read the sim card and when i went to check the settings it tell me that the baseband is unknown the imei is unknown ans the software version is also unknown.... If anyone has had this issue and has been able to fix this can someone please help me