I feel like the kage will take it. Tendo Pain would get taken out relatively quickly while Nagato will get overwhelmed. But this is a big if.
If the raikage mindlessly tackles nagato, then it will give nagato the chance to absorb his chakra and gain power. Particle style can be absorbed. Only way I see kages winning would be if gaara manages to seal nagato or ohnoki and raikage speed blitz nagato before he can begin absorbing chakra.
@yamiyodare: Hang on. People are actually saying Nagato? Pain doesn't really add to this significantly; it would be Nagato VS the 5 Kages and we've seen Madara go against the Five Kages I doubt Nagato would last that long since Madara was getting overwhelmed by Jutsus and survived because of his Susano and other insane durability which Nagato lacks. So 5 kages Kind of wreck hard.