Welcome to the forum.
1) You could have a loose rail. Try this fix - set your sunroof to the lifted (not slid open but lifted open) position (back end is angled up forming an open gap). in this position, from inside the cabin, look up and find, under the upper of two plastic rails, there you'll find a six-sided star screw. The little rail is clipped onto two pegs; one in the middle and one at the back end. With a little force, slide the rail towards the back and it will unclip and become somewhat loose. Use the hex screwdriver to tighten these screws and then slide the rail back onto the pegs. Check to make sure it's back together correctly using the sunroof button.
3) Need some more detail to go on.
2) Does the window go up, but manually? Dealer may need to reprogram computer or the switch could be bad.
1) You could have a loose rail. Try this fix - set your sunroof to the lifted (not slid open but lifted open) position (back end is angled up forming an open gap). in this position, from inside the cabin, look up and find, under the upper of two plastic rails, there you'll find a six-sided star screw. The little rail is clipped onto two pegs; one in the middle and one at the back end. With a little force, slide the rail towards the back and it will unclip and become somewhat loose. Use the hex screwdriver to tighten these screws and then slide the rail back onto the pegs. Check to make sure it's back together correctly using the sunroof button.
3) Need some more detail to go on.
2) Does the window go up, but manually? Dealer may need to reprogram computer or the switch could be bad.