Hello norma142,
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
With regards,
Alefe ****
[Personal Information Edited by Host]