If the Brightness slider in the system tray area and also in the Settings App - System - Display section is not working to change the brightness on your screen, that usually indicates there is a problem with the Graphics drivers.
The best option is to go to the support page for your PC on the manufacturers website to download and reinstall the version of graphics drivers they provide for your PC model.
If you have any difficulty locating that support page, click your Start Button, then just type msinfo and press Enter, please provide a screenshot of the resulting System Information window.