Right guys i need some help!
My sunroof is not working

It was working fine the other day, i had the sunroof open and locked the car on the full closure and the sunroof didn't shut

I then got back in the car and i can here the motor relay clicking but the motor is not working, i removed it from the sunroof cassette
The motor has a 5 wire plug on it, what are the points to check for power etc?