IPhone 6 Flash won't stay on Cuts on randomly see details?

The flash will cut on sometimes but not all the time it just blinks on and back off… Flashlight won't turn on at all on the phone itself but when I downloaded a flashlight app it works on the app?! I'm not understanding. I can't even see my flash when it does flash

Fff