1989 xj40 sunroof problem

I just noticed the rear drivers side of my sunroof is not going up and cosing? I am trying to get the car ready to sell,$3500, and was wondering what to look for. I understand that I need to remove it to fix, but how do I know whats broken?