What makes pus pains in boil or any wound which has become infected?

Tied together. Pain is caused by inflammation. An infection brings white blood cells which cause inflammation pus is the residual of white blood cells and dead broken down materials.