The power sunroof consists of a set of somewhat delicate, plastic mechanisms on each side that slide along a track -- back and forth. If the sunroof was somehow misaligned then they are definitely easy to break. If there were grinding noises, as you've described, while closing the roof then most likely, you've broken something in the track. If you're not mechanically inclined, I don't recommend attempting to repair. You can access the sunroof motor by prying the cover off from the headliner that lies behind the roof lighting switches. This way, you can remove the motor for replacement (there are usually three mounting screws) or use a hex key (should be located in trunk toolkit) to manually open and close sunroof.
As far as the power window motors go, you haven't acknowledged whether or not you checked the fuses associated with the windows. Like I indicated before, try checking fuses #19 and #24. You could also try this little trick I've learned -- shut the door fairly hard while simultaneously holding the power window switch up or down. If that moves the window then chances are you will have to replace the power window motor. Good luck.