I have a 13 year old Bosch WFB 2005 washing machine.
When I switched it on the other day, set to a normal wash cycle, it started to fill with water, then 20 seconds later there was a small bang and a flash, and a small amount of smoke from the top front right of the machine (where the program dial is). The smoke was about the same amount as you get from blowing out a candle. It smelt a bit but not much, rather ozone-ish.
I switched the machine off immediately after the bang, then when I turned it on again later, it made the same bang. After rotating the program dial to spin, I switched it on again, and got a sizzling noise.
I then turned the drum by hand a little (thinking the motor may be jamming), and the machine started working.
I tried again on wash cycle with the lid off the machine, and got the bang again, and the smoke clearly came from the program selector.
The main motor's brushes and commutator are in perfect condition. I can see nothing burnt on any of the little circuit boards.
The program selector has been removed and is pictured here: