Doorbell won’t charge when hard wired

It works fine now but another problem cameup. I can hear but they can’t hear when I talk. UGH!