My phone's camera app doesn't work
This can occur when you have insufficient storage available.

If you camera saves pictures to the SD card and your SD card is full (or does not have enough space for a new picture) it can crash.
A factory reset does not affect external storage.

Check where your camera stores it's pictures and if there is room left for pictures.