you need a programm like XS++ or Setool to show the information of the phone. Than when you know the CID and some other things you can flash it with the firmware with the same CID and the same phone.

PS. which phone do you have?