Sunroof reset. on 2005 Volkswagen Touareg

Does anyone knows how to reset the sunroof for a 2005 VW Touareg?
I had the sunroof open for several hours (3-4 hrs), when I tried to closed it did not worked. I opened the panel and manually closed the sunroof.Now it does not open or tilt up.
All the other buttons and light that are in the same panel(reading lights, watch, etc) are working properly.