Robert F. Wagner Jr. , son of a renowned mayor and grandson of a renowned senator, Mr. Wagner spent his life in public service. He served as a deputy mayor in the Koch administration, Board of Education president and chairman of the City Planning Commission. A lifelong Democrat, he transcended partisan politics, becoming an adviser to Rudolph W. Giuliani during his 1993 mayoral campaign.