Is this for the Maytag Maxima, or something else? All questions should have 'make model (what it is)'. We see 75% of questions posted to the wrong categories.
The easiest way to reset a Maytag washer is to disconnect the power to the washing machine for three minutes. Disconnecting the power allows the electrical charge to dissipate from the washing machine, which allows it to reset. If the reset fails, unplug the washer again, this time leaving it unplugged for ten minutes.
Dec 2, 2021
Question edited for clarity.
When the power came back on, or when it went out, there was probably a brown out or voltage surge. You need a service visit. You can try and claim against the utility company for not regulating their power supply to you. Are you certain you have power at the outlets? It is odd that both would succumb to it, unless you were hit by lightning?
Bad bearings would not cause that. Bad bearings cause a jet engine noise in spin, plus you get movement in the drum or a grating sound when you turn the drum. You can 'feel' bad bearings just like you can on a car.
Page 10 of the instalation manual shows your wiring.
L1, L2 and neutral plus an earth.
https://www.searspartsdirect.com/installation-guide/3okpb1qgwe-003048/maytag-mde9700ayw-dryer-parts