Arduino Nano and water pump (2n2222a switch)
I propose that you temporarily disconnect the node to MCU pin D9, and first manually tie it to the 5V supply, and see if the motor runs. This will eliminate any software bugs and verify the power circuit.