You have pyorrhea. That's why your teeth are bleeding
at the time of brushing. And you have dental caries
or deep carious teeth also which are causing pain
. You need scaling of your teeth. After scaling take medicines prescribed by your dentist
. Your problem will be cure soon. You need Restoration or RCT or Extraction of your painfull tooth.