I do enjoy repairing things. So when my electric razor stopped working, I saw that as an opportunity, not a problem.
I found that it worked when I held it upright, but not if it was at an angle. That sounds like a loose connection, so I dismantled it. Sure enough, the connection between the switch and the battery was loose, so I tightened it up and the razor works fine now!