There are several threads on this topic but I will summarize below the steps that I would take to get to the root cause of the issue:
Baseline your braking system:
1. Inspection all soft lines, R&R as required
2. Check pads and shoes for proper thickness and normal wear, R&R as required
3...