I jailbroke my IPhone 6 and want to know if there's any way i can un-jailbreak. I tried updating my phone but it said there was a error

I jailbroke my IPhone 6 and want to know if there's any way i can un-jailbreak. I tried updating my phone but it said there was a error - 1

Hi so now you need a new phone as the static ram has become damaged.

Put your phone in DFU mode and restore in iTunes.