U Have 2 Problems
You have 2 separate problems.
The broken edges can be easily repaired by a dentist, either with composite (plastic) or porcelain. The discoloration and swelling on the gums are most likely signs of infection within the tooth root. That was probably caused by trauma and needs to be addressed separately. In either case, there's nothing you can do yourself. See your dentist soon.