First you flash out your data and restart your iPhone, you completely wipe the software from your iPhone but if it is still not working then there is a possibility that there is a problem in your camera hardware.
Sorry that my first post is about problems. I am having problems with my camera. My IPhone 3G camera not working! The shutter will not open & phone restarts when I hit the camera apps. Much Thanks in advance