In this paper, we address the consensus problem of second-order multi-agent system with sampled-data and packet losses. A Bernoulli stochastic variable is used to characterize the random packet losses in second-order multi-agent system with sampled-data information, in which packet losses are modeled in a successive way. Based on the matrix exponential and stochastic analysis techniques, several sufficient conditions are given to ensure the almost surely synchronization of second-order multi-agent networks with sampled-data and packet losses, where the graph among the agents is a directed network containing a directed spanning tree. Additionally, we further investigate the almost surely consensus for such system containing time-delays and packed dropouts. On this occasion, the communication graph among the agents is represented by an undirected connected graph. Furthermore, it is found that the probability of packet losses and the modulus of eigenvalues of the Laplace matrix play a vital role in achieving almost surely consensus. In the end, the developed results are applied to the coordination of multiple vehicles. Two examples are provided to illustrate the effectiveness of our results.