We all have our time machines, don't we. Those that take us back are memories. And those that carry us forward are dreams.
The idea here is that we don't need machinery to travel through time, because the mind already does it. Memory carries us backward, letting us stand again in a childhood kitchen or relive an old friendship. Dreams, meaning hopes and plans, carry us forward into a life that doesn't exist yet. Time travel, the stuff of science fiction, turns out to be an ordinary human habit.
The thought echoes Augustine's old observation that the past lives in the present through memory and the future through expectation. It also fits Wells's lifelong fascination with the future and with how imagination shapes it. Still, the attribution is doubtful. The line seems to come from a film adaptation of The Time Machine rather than from Wells's own writing, so it's best treated as Wells-flavored rather than Wells's own.
A person today could use it deliberately. Suppose you miss your grandmother. You might look through old photos and recall her cooking, then let that memory turn into a dream: learning her recipes and hosting a dinner for your family. The past becomes fuel for the future instead of a place to get stuck.