flowers attract insects that transport gamete
Flowers in plants are an attractor of insects and birds which then act as dispersal agents for the male sex cells or gametes called pollen.
Flowers also help the plants to have more options of achieving pollination in that they do not have to depend on the wind for transfer of pollen. Insects and birds are significantly more efficient as agents of pollination than wind.