India beat Pakistan by 4-1 in the first game between the traditional arch rivals in the Hockey World Cup.