In that case I would probably say try DR'ing your phone as more likely a software fault than hardware. If you need any help doing this there are plenty of guides on here and I will quite hapily help if I can.
How far away is the object you are taking the picture for? Flash on cameras only work up to six feet. After that the timing is off so you might not get a picture. It's the same for any camera.