'Were you' is grammatically correct, as it gives us a subject (you), and a time (past), although it is not a full sentence, which requires a location. So you could say 'Were you upstairs?' and it be a 100% grammatically correct English sentence.