How old is the bike? miles? Does the brake lever feel spongey?
Without that info, it sounds like you need to bleed the brake line. Longer shot is the pads/rotor are glazed - any 'extreme' braking?
From there (if an old or outside stored bike) I'd check for sticking brake pistons (corrosion), then look at the master cylinder seals/corrosion.
- Charlie