Those metabolic reactions involved in the synthesis and utilization of nicotinamide adenine dinucleotide (NAD). There are several routes leading to NAD biosynthesis from various sources. NAD, in addition to its well known role as a cofactor in redox reactions, also serves as a substrate for several classes of enzymes.