This question already has an answer here:
In Naruto Shippuuden, does the Summoning: Reanimation Jutsu bring a dead person to the real world at any wanted age? (Young/Adult/Old) Or does it bring the person back at the age they died?
Because we have seen that Reanimation Jutsu brought back the Third Hokage as on old geezer. Which was the same as when he was at deathbed. But Madara Uchiha was revived as a younger version of himself, instead of his old age.