For security reasons MetaMask automatically locks your account after a certain period of time. To unlock you will have to open the MetaMask extension and put in the password.