I am not sure what exactly helps revive them, but definitely having plenty of food is good. I try to get my weak villagers to research, as they can just stand at the table. Others have said building can injure the villagers further. You can also make the villagers eat and drink, but I do not know for sure if this actually helps them

Older villagers do seem to have a tendency to weaken more quickly, and have trouble recovering as well