Green function approach to transport theory of scalar fields