The demo account for the MT4 account type is set to expire after 90 days regardless of the login activity, and the MT5 account type is set to expire after 30 days of inactivity.
If the demo account is still active, ensure that you are using the correct account number, password, and server, which can be found in the email that you received when you first open the account.