thusband - how confident, given the machine is now back to life, that it wasn’t the switch or the socket?
If it wasn’t, then there must be something inside the machine. If it was a thermal fuse or something of the kind, it’s possible, but I am not sure how they are wired… I’m not sure if it would switch the whole machine off and not only the boiler.
Anyway, if it is indeed the machine, I’d do a thorough check for loose wires or signs of damage, starting from the mains socket of the machine and working your way inside the machine.