Jake O'Brien headed Everton in front after seven minutes, but second-half goals from João Gomes and Brian Madjo gave Villa the points.