Flowers are the parts of the plant that most people notice. In fact people sometimes become confused between plants and flowers and call the whole of a plant a flower. 
The purpose of the flower is to make seeds which will grow into new plants. 
Some plants have brightly-coloured or sweetly-scented flowers. These are to attract insects.