Why isn’t the flash on my iPhone working?

Why isn’t the flash on my iPhone working?
I’ve been trying to use my iPhone’s flash, but no matter what I do, it just doesn’t seem to work. Whether I’m attempting to take a photo in low light or trying to use the flashlight function, the flash simply refuses to turn on. I’ve checked to make sure that the flash option is enabled in the camera settings, and I’ve even tried switching on the flashlight from the control center, yet there’s no light. It’s incredibly frustrating because this issue has made it difficult to capture photos when there’s limited lighting, and I can’t rely on my flashlight when I need it. I can’t figure out why this is happening and would like to understand the possible reasons behind it. Is it a software glitch, or could there be something wrong with the hardware?