Heat? Liquid fertilizer burn? Too much sun? In a pot, my basil likes a little shade. Our sun has been very strong for the past month. Unless you're collecting seeds, I would snip off those flower bud clusters so the plant energy can be directed to new leaves.