High card beats a pair of 2?

I had a pair of two the other player a Q and a 2

In the table 3 K a 7 and a 3

I lost ???