Most likely a component has broken Cable or such if you hear the motor at least try to operate when you work the roof switch. if you don't hear the motor at least try to engage the problem may be electrical check the fuses.
I had the same problem. My switch was faulty, but replacing it didn't fix the problem. I'm going to have to replace the wires. My sunroof did stick open once and I was able to close it by dropping the lining and pushing hard on the back side of the window while I had a friend pressing the switch forward.