door will not open

After replacing door gasket, the machine completes washing cycle, I hear the door trying to release the lock but the door remains locked.