plan b

i had recently read that plan b doesn’t work when you’re ovulating. why so? and what should you do if you had sex while ovulating and the condom broke and the plan b “doesn’t” work?