inactive sim card means it has been barred normaly or u may have damged the gdfs on it
dont just wright any other to it or u will kill it also it may have had the imei patched to make it work so when u have reflashed it it has removed the patch :-(