Lamarck was the first scientist who attempted to explain evolution through the theory proposed by him called Lamarck's Theory of Evolution/ Theory of inheritance of acquired characteristics or Use and disuse theory.
According to Lamarckism, new needs due to environmental changes cause the development and accumulation of acquired traits in a number of generations. The accumulation of acquired characters of a number of previous generations causes the speciation.
He also postulated that the use of organ strengthens it while the disuse weakens it and subsequently the organ loses its functionality as a result of this. According to Lamarck, the long neck of a giraffe evolved because its ancestors lengthened their necks by stretching them to obtain food and this change was passed to their subsequent generations.