Asymptotic distribution for the sum and maximum of Gaussian processes