Chosen Solution

I bought this iPhone over ebay. The phone is in pristine condition but the rear camera is working only in panoramic mode, Slo-mo and time-lapse mode. Video, Photo and Square features are not working. Front camera is fully functional. What could be the problem? Any help would highly appreciate. Thanks in advance.

I would assume the rear camera assembly would need to be replaced. There are two cameras, which probably one or the other are being used for certain modes which would explain why some modes wont work.