Try using some silicon lubricant spray in the side tracks. roll the windows down, spray the tracks, roll back up. If you have the door panel off at some point, spray the lower part of the track. Don't use too much.
But if you've replaced the motors with motors that actually work (and I'd hope you did), it's probably just dirty contacts.
It's not much work to clean, pop the controls out of the door panel, disconnect wires, remove some screws. File down contact points, be careful though, there are plenty of tiny things in there to get lost, especially for the driver's controls (watch the spring for the window lock button).
It's nice that Toyota built most parts in this car to actually be cleanable/rebuildable, nothing glued in the door controls which you'd be guaranteed with on a domestic of the same era.