Let (X,d,μ) be a RCD∗(K,N) space with K∈mathbbR and N∈[1,∞). Suppose that (X,d) is connected, complete and separable, and \suppμ=X. We prove that the Li-Yau inequality for the heat flow holds true on (X,d,μ) when K≥0. A Baudoin-Garofalo inequality and Harnack inequalities for the heat flows are established on (X,d,μ) for general K∈R. Large time behaviors of heat kernels are also studied.