Catalysis of the reaction: 3-hydroxybenzoate + H(+) + NADPH + O(2) = 3,4-dihydroxybenzoate + H(2)O + NADP(+).