Most of the time this is from lint wrapping around the axle and blocking the sensor. The wheel is an opto-mechanical device like a ball mouse, where a LED shines through the spokes of the scroll wheel to register movement on the sensor on the other side. Block the spokes and it cannot measure movement.