When a doorbell quits working, it is usually because of either a bad transformer or a broken wire. Either way, there is a simple way to repair it.
Wireless chimes are truly a boon to mankind. You hang the new chime in place of the old one. It is powered by batteries. Replace the old button by the door and the repair is complete. Be sure to cap the old wires and push them back into the wall.