Fixing The Security Token Service Not Available Error

I get this error ‘security token service not available’, on my laptop. Can anyone guide me about this issue and how to proceed with its removal?

I get this error ‘security token service not available’, on my laptop. Can anyone guide me about this issue and how to proceed with its removal?
A security token service is a web service that performs several functions like, issuing a security token based on given information or credentials. Managing the token and checking the authenticity of another one. Increasing or decreasing the duration, canceling the token, and transforming it for a different transaction. It can be a digital certificate or any hardware.
If you have the correct token then you gain access to the application; otherwise, you are denied access.
To find out what is wrong then open the IIS manager and check for STS and browse –
If your STS is not healthy, then it will show something like this–
This error can be fixed by using this command.