Here are some steps you can follow to fix a doorbell:
1. Inspect the wiring for damage. Repair breaks with twist-on connectors. Splice in a new wire to add length and allow for connections.
2. Check the doorbell button. Remove the screws holding the button to the door casing. Unscrew the wires from the button and cross them. If the chime rings, then you’ve found the problem. Replace the button.
3. Check the doorbell chime unit. Replace the chime unit if it is faulty.
4. Check the transformer. Replace the transformer if it is faulty.
5. If all else fails, go wireless. You can try troubleshooting the problem by moving the receiver or changing batteries.