restoring only fixes software problems not hardware.
if it's factory unlocked then you can use any firmware (stock).
if not learn how to get in/out DFU/Restore modes (first)