When the torch won't turn on, find out if it is software, the flash part or the board.
1. Charge the phone. Many phones turn the flash off at low battery or when hot.
2. Restart and try the torch from quick settings and from the camera app.
3. Close apps that may be using the camera.
4. Check the flash isn't blocked by a case.
5. Open the phone and check the flash flex or connector, especially after a back cover change.
6. Replace the flash LED or its flex if it is damaged.
If the flash stopped after water damage, check the area around the flash circuit for corrosion.