I teach children aged 10 to 14.
I teach children ages 10 to 14.
The first sentence is grammatical. The second one is not. You can change it with I teach children whose ages vary from 10 to 14.
EDIT upon comment: It seems I was mistaken in my initial answer and the second example is also grammatical. FumbleFingers' comment has the appropriate link to prove this.