Dogs sore teats?

Four of our five puppies have new homes. Now, however, the mother is refusing to eat and will not allow the remaining puppy to nurse. She is trying to wean the puppy but, in the meantime, her nipples are hard and sore. What can I do to help her?