Disable filter effects in your camera app, at least, while you are troubleshooting. This will eliminate the possibilities that the problem may be caused by filters.
Fully charge your battery or, at least, verify there is enough battery left to turn the flash on when needed.
Check for any physical and liquid damages. In case there is a physical damage, the LED may have been broken. If the device has liquid damage, the LED may have been busted or there could be some problems with the circuitry.
Check for available updates first for the firmware, then for the camera apps you may be using.
Lastly, reboot your phone; it may just be another temporary device problem.