Why does passenger window not work but drivers window does on your Toyota MR2 1996?

If it is electric windows it is the motor which needs replacing or it could be the regulator