my electrial windows on 1991 Buick Century

i have replaced my window motors and a new window switch but my windows will still not go up or down then all of a sudden they will go up and down what could my problem ?

Asked by for the 1991 Buick Century