Htc One M8 network problem

My HTC One M8 from Verizon got messed up when i loaded a custom rom on it. It lost IMEI,baseband and the necessary stuff to make it detect network.
I tried getting the info in fastboot and found out that the IMEI is still somewhere in the phone.
Please HELP…