My sunroof opens properly but it won't close. I can hear the motor going but it'll only move like 1mm.

Do you guys think it's the switch or the motor? Could it be something else?