Power window not going completely up every time

My driver side power window does not going all the way up every time… sometimes it will go half way up or maybe just a few inches… If I let it sit for a minute or two and try again it will go either all the way or again, just a few inches.(almost as if it needed to charge the motor so that it can go up further) Do I need to install a new power window motor? Or, are there other factors such as the relay that I need to check?

First try cleaning and lubricating the window tracks. It might solve the problem.