A 3-1 victory over Burnley lifted West Ham, at least temporarily, into the top four in the Barclays Premier League.