Have you tried restoring or updating the iPhone through iTunes? You will need to get the phone into recovery mode in order to do so.
open