You need to check all the wiring with a multimeter, and that everything is getting the
right voltage.
A close visual inspection is often worthwhile too - be methodical and work through every
connection looking for bad connections or mis-wiring.
[adding LED+resistor to selected Arduino pins to see what they are doing is often
useful - although an oscilloscope is the best diagnostic tool if available]