Digital output pins not working

When you start using 12V (for motor for example), then a mistake is easily made. Touching the Arduino board with a wire with 12V will damage it. It is possible to damage only a part of the ATmega328P microcontroller. For example when all analog pins fail and the rest still works.

But as we all see it: everything works, you just have the led in reverse.