The last time my dryer went out, it was going to cost a few hundred to fix it. Instead, I took off the cover on the controls, found the circuit board, found the ID numbers on it, Googled them, found it from some electronic supply place, ordered it, removed two screws and unclipped the old one, plugged in the new one and secured it with the 2 screws, and it still works, more than 10 years later. Cost about $50 for the circuit board.
If the mechanics of a washer or dryer still work, then it's probably just the circuit board.
Years ago, 90s or before, they were having a big pro golf tournament in my city. One of the players went to a local Walmart, and just before they entered the store, they were shot and badly injured.
After a LOT of investigation (they'll do that for famous people, not the rest of us), they discovered that a couple of guys were target shooting in the woods next to the Walmart, and one of their bullets had cleared every tree, branch, and impediment between them and Walmart, a long distance away. I seem to remember that they were nearly a mile away.
They were so far away that even when they saw the story of the shooting on TV, it didn't occur to them that they could be responsible, because they were so far away.