NAD+ and NADH are two forms of the same electron carrier. NAD+ accepts electrons; NADH carries and donates them. Within mitochondria, this transfer feeds the electron transport chain, which creates the gradient used to produce ATP.
NAD+ helps transfer energy. ATP supplies energy directly to much of the cell’s work.