Depending of the pair and the position there are some different ways to play, I can say that your image in the table, and your reads can help a lot your game.
Low pairs in early position I will try to play for set, but depending of the amount of players in the hand, and what appears on the flop I will make a cbet, or check/raise, trying to represent a strong hand, this position are good for this, because the range of who are playing in this position tending to be the top.
Low pair in late position I will play strong, like with premium
hands, but if the villains does anything strange I be prepared for fold this hand.
High pair in any position I will play strong, and avoid to enter in a hand with many players, I will bet, 3bet, 4bet, trying to extract value and play against less players, but always with caution, because the others plays can have a pair more high, or can increase the strong of theirs hands in the accord of the board.
In the middle I will play based on the number of players after me, with less players more agressive I will be, per exemple, raising 3x with 99, with no call or raises, I will play more agressive than with one or more player raising or calling in later positions.