If the window is not moving at all, it is most likely the window motor. If the window is moving slowly or erratically, it is most likely the window regulator. Keep in mind that these are general indicators, and for a definitive diagnosis, it is advisable to consult a professional mechanic or refer to the vehicle's repair manual.