If you have dropped your Iphone, then it might be the connector to your camera that has become loose.
See of iphone with cam problem - video here
The problem is that connector under logic board need to be connected again.
This video show you the solution .
This video replace camera. But it might just be a loose cable after you droped your iphone.
So check that first !