When organs have similar functions, but different structure and origin, they are called
Analogous organs
Analogous organs are those organs that have some superficial resemblance, perform similar functions and yet, have different evolutionary origins and hence, different anatomical structures. Homologous organs are organs which have similar functions but different origins. The vestigial organs no longer have a purpose in the current form of an organism of the given species.