If you have Baseband null,IMEI unknown like that you need to flash whole firmware another way is this :
1 Download the NON-HLOS.bin
2 Flash it
fastboot flash modem NON-HLOS.bin
3 Erase modemst1,modemst2
fastboot erase modemst1
fastboot erase modemst2
4 Reboot
fastboot reboot
This NON-HLOS.bin is extracted from XT1022_CONDOR_RETAILDSDS_5.1_LPC23.13-34.8_cid7_CFC.xml.zip