Pragmatics investigates how language is used in social contexts, considering factors like social roles and norms.