If you shut down your SQL Server and can’t connect, try this
Open SQL Server Configuration Manager:
Search for it in the Start menu and open it. Find Your Server:
Go to SQL Server Services. Look for your server ( SQL Server (SQLEXPRESS01)). Start the Server:
Right-click on it and choose Start. Try Connecting Again:
Open SQL Server Management Studio and connect. It should work now