Just press the power button and let it boot, then use itunes to make a backup of the iPhone and flash it on your iPhone.
open