The failure of a brand new can to spray is rarely a clogged nozzle.
It's more likely there's solids trapped in the dip-tube, after settling at the bottom of the can, from sitting on a shelf forever. That's why the mixing ball is often stuck.
Normal shaking usually fails to dislodge material clogging the tube, even after the ball rattles freely.
I've had some success, maybe 50% of the time, getting "new" but useless cans to spray by repeatedly striking the bottom of the can on a hard surface to try to dislodge the blockage, and shaking very vigorously...sometimes repeating the procedure multiple times over several days.
But don't strike it too hard. I've ruptured a can by getting too froggy with it.
EDIT: Worst case, and I've done this too if it's an oddball color or the chances of getting another bad one are high, is to just decant it, and airbrush.