If the door will close & the machine works ok but the door will not open, then the solenoid attached to the door mechanism is faulty.
If the door won't close properly, then the door mechanism is faulty.
To get to it, undo the 4 screws behind the door. The front of the machine will hinge out. The door mechanism is attached by 2 screws.