Wow...both?!?!
Sounds like a bad switch, because it seems like the other (3) windows are working properly.
What I would do...since it's cheap & easy, remove the (2) door panels & see if the connetions are tight. And/or see if the connections are rusty. If so, lightly sand them off & re-attach them & see if they work. Be sure to test it before you put the door panels back together, because you don't want to do the same job twice.
And if there is good news, put electrical tape or shrink tube over the connections.
Good Luck!!