You're asking where the blood came from, right? Can't tell over the internet.
Your gums may be inflamed, food may be getting trapped in that broken tooth, further irritating the gums, could be from your other conditions. Your physician and dentist will need to rule things out, one at a time. Please call for appointments.