Since the code looks correct I expect you have one or more of the pins from the arduino to the shift register wired wrong. Since the leds all light in sequence they are likely wired correctly as is the power.So verify
arduino pin 4 goes to shift register pin 14
arduino pin 5 goes to shift register pin 12
arduino pin 6 goes to shift register pin 11
Peter