Very broad question. I’m going to give you one recommendation:
Understanding Language Change by April M. S. McMahon. 1994.
Magnificent, and goes into a lot more of the mechanics of language change, informed by sociolinguistics, than the older treatments.