PWM in arduino

We connected PWM to pin 11 and to ground.

PWM comes FROM pin 11, so I don't know what you mean.
Can you post a schematic please.