when battery discharge / delivering current the lead at the anode is oxidized
that is ;
pb---->pb+ 2e-
since the lead ions are in presence of aquous sulfate in insoluble lead sulfate precipitate onto the electrode
the overall reaction at the anode is therefore
Pb + SO4^2- ---> PbSO4 + 2e-