seems like a hardware problem u should check the camera module, check everything is connected properly if u still have warrety take it to a se service centre and have the cam module replaced