Chosen Solution
The Rear Camera of the phone goes black screen. I used it ive take a pic so fast i mean rapidly the half of the camera app goes purple and crashes then when i opened it it goes black screen Note:I tried the low power mode trick it works then it happened again i tried it again and it not works anymore The phone has a bad battery .Is it a possibilty of bad battery ? Or a bad rear camera ?
I think it is the rear camera. A bad causing under voltage would cause more trouble like a unresponding or ghosting touch screen. Replace the rear camera first. This was a very common problem of iPhone 5 that the rear or front camera stops working and causes crashes of the camera application. If this doesn´t work out please post your results so we can check the next steps. Use this guide iPhone 5 Rear-Facing Camera Replacement and good look to you.