Flowers among the vegetables are more than just a colourful addition. They attract pollinating insects to fertilise the flowers of beans, peas, tomatoes and all those crops that depend on pollination to produce a crop.
In some cases they may act as a decoy or a repellent to harmful insects such as aphids. Some are beneficial to and attract predatory insects such as ladybirds (ladybugs), wasps and hoverflies. These are particularly useful in controlling pests naturally without your intervention.
Some also act as soil improvers: either by fixing nutrients in the soil or acting as green manures if dug into the ground at an early age. Some just look pretty, attract the bees and provide some lovely blooms for cutting for the house.
– See more at: http://www.my-garden-school.com/10-flowers-to-grow-with-vegetables/#sthash.Hk2UiM25.dpuf