Its the usual track needing to be greased and the motors clutch needs to be tightened scenario. First remove the map light/sunroof switch assembly to look at the sunroof motor; you should see a spot where you can stick an Allen wrench on the motor. Now in the trunk with the tools that came with the car there is an long Allen wrench that is bent like a crank which you will use to manually open the sunroof. Whatever you do dont force the sunroof with your hands, I made that mistake and cost me 3-4 hours to replace the assembly

. Hopefully the system is not jammed, if it is you'll either have to live with it or replace the entire unit with another one.
Once you do that you can clean the track and replace the grease with a silicone based grease; I would not use lithium as it stinks for awhile, another mistake I made.
To tighten the clutch on the motor takes a little more time because you have to remove the a-pillers in order to remove the main panel that covers the rest of the motor. Once you remove the motor look on the top side for a washer that is bent onto a retaining nut. Bend the edges of the washer down in order to tighten the clutch about 1/16 to 1/8 of a turn. You may want to disassemble the motor to inspect the clutch to make sure grease hasn't gotten into there which some have seen.
Also once you get the sunroof open take you should see a hole at each corner of the sunroof assembly which are the drains. Most use a compressor to blow air through the holes to hopefully dislodge the gunk.