Rear camera and flashlight not working after awhile of using my iPhone

hi when I turns my back camera after I bought it i hear a noise comes from the camera but after some times the screen turns black and gives me x2.0 zoom but when I reduce it to x0.5 it works fine I thinks it’s the ultra wide camera i don’t know what happened, it didn’t drop, or anything, and I remember that when Im on my WhatsApp, a message popped up showing a problem white the camera but after that the problem came in, my flashlight works withe the ultra wide camera I mean withe x0.5 zoom but don’t work without the camera the flashlight only I tried everything to restore the system I tried to return to the manufacture system nothing of all that helped

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0