Whirlpool duet

My machine stopped mid wash one day and has been broken since. I ran diagnostic and the got error codes f9 e2 and f5 e2. That’s pump and door lock error codes. I bought new pump and lock and installed and still doesn’t unlock or the machine won’t run and is glitchy. Any ideas?? Thanks