There are a few things that could be causing your screen lock not to work. One possibility is that your device's security settings have been changed or disabled. You can check this by going to Settings > Security and checking the "Screen Lock" option. If this is the case, you'll need to re-enable screen lock. Another possibility is that your device's battery is low or discharged. You can check this by going to Settings > Battery and checking the "Battery" option.