Where is the rest of your sketch? Don't post snippets - please review the "how to use this forum" post at the top of the forum.
How are things wired up? Do you have the grounds connected? Is power connected properly?
What does it mean when you say it "doesn't work"? That could mean you see different pattern than you expect, or that the lights don't turn on, or that the board catches fire. A description of how the observed behavior differs from expected behavior is critical.
When you say it doesn't work, what results are you getting?
I notice your strip name changes from 'pixels' to 'strip' and back again - you need to be consistent.
Can you show us the rest of your sketch. Post it inside code tags to make it easier to read.
It's probably better not to use setBrightness like that - for most sketches you only want to use it once, in the setup() function. My recommendation is that you remove it altogether from loop then switch off the pixels with