Has glycerol-3-phosphate dehydrogenase activity. NAD(+) + sn-glycerol 3-phosphate = dihydroxyacetone phosphate + H(+) + NADH Homodimer. Belongs to the NAD-dependent glycerol-3-phosphate dehydrogenase family.