If your sunroof won’t open or close, or it makes a grinding or clicking noise when trying to operate it, the motor may be bad. Additionally, if the sunroof opens or closes partially but then stops working, the motor may be struggling and in need of replacement.