Elder refers to a person of a greater age. For example, my elder brother. Elderly refers to a person of old age. For example, an elderly man . Elderly is also used as a plural noun, i.e. the elderly.
I believe the word "elder" when used as a noun refers to somebody who is older than you, or an older person who we hold in respect, e,g. our elders, village elders, etc.