Hello, and thanks for posting.
That is odd that your camera isn't working. If I may, I'd like to ask a few questions.
1) When did you purchase the phone?
2) From who did you purchase the phone?
3) Was the camera ever working when you owned the device?
4) Was there a series of events that could have damaged the camera (drops, water, etc)
Try some experimenting:
1) Does the camera refuse to work all the time or a certain battery level?
I would take a look here:
If the camera on your iPhone, iPad, or iPod touch isn't working - Apple Support
If you are out of options, I would schedule an appointment at the Genius Bar at your local apple store, or at an Apple Authorized Repair Centre.
Hope this helped, and I wish you the best of luck.