Thanks for using Apple Communities.
The electronic components responsible for either camera and flash are the same. If after restoring your iOS the issue persists, you might need to visit an Apple Store or an Apple Authorised Service Provider for further options.
Hope this helps
[Personal Information Edited by Host]