See https://www.youtube.com/watch?v=f8gRJgxjUDk
The console unit has 2 clips as well as the screws holding it in place.
Just pry it out carefully. You also need to remove the sun visor clips
but be very careful. They have a plastic tip on the rear side that you
have to push towards the front of the car with a screw driver so that
you don't break it. To get to the sunroof motor, removing the headliner
band around the sunroof is key so you can pull down the headliner to
get access.
On the subject of the sunroof motors, they are a piece of junk. The
are built with the main gear made of nylon. Eventually this gear will
crack and your motor will be useless. You can't buy OEM parts
anymore and there is a good chance if you buy one from a scrap yard
that it will be seized too. There is a socket to insert an allen wrench
into that will let you rotate the main gear. Mark the position first and
then see if you can carefully rotate the gear ~90 degrees. If it gets
stuck, the gear is broken.