Hi
Welcome to the MedHelp forum!
Breast swelling with pain in ribs and headache can be due to fibroadenosis (treated by Danazol and other hormones) or due to abscess in the breast. It is difficult to comment beyond this without examination. An abscess of breast would need incision and drainage.
Please consult your PCP for primary examination followed by proper referral.
Hope this helps. Take care!