In-form Gray strikes as Everton hit back to beat Burnley