As others have since answered, it very much sounds like your remembering the 2005 film adaption1 of Hitchhikers Guide to the Galaxy. It was based off a radio series, and has been adapted into various other media, including books, video games, television series and even stage musicals.
The movie follows the story of Arthur Dent. After finding out his house is set to be demolished to make room for a new byway, his friend Ford Prefect convinces him to go to a bar for a drink. On arriving, he is told that Earth is going to be demolished to make room for a new hyperspace bypass. Ford is actually an alien, who was on Earth working on the Hitchhikers Guide to the Galaxy.
- A person (not from Earth, but looks exactly like a human) tries to shake hands with a running car (thinking that car is a human), and the hero saves him.
This scene depicts Ford first arriving on Earth. Arthur saves him, which leads to them becoming friends. He later explains that having just arrived on the planet, he mistook cars to be the dominant life form and was trying to introduce himself. Ford rescues him from Earth as a means to return the favour. This scene is currently available on YouTube, at this link.
- The earth will be destroyed, but with the help of some other beings (not of Earth), it is rebuilt, from the Himalayas to everything.
The Earth is inevitably destroyed. However, our hero comes to find out that Earth was actually built by pan-dimensional beings to compute the ultimate question (having previously built a computer to compute the ultimate answer, but not being able to interpret it). As such, it is re-created from a back up.
The scene you likely remember, here, is where Arthur is being shown the new Earth. At a certain point, our hero jets passed a set of rising mountains, as the architect (played by Bill Nighy) exclaims "Voila! The Himalayas!".
All in all, it was fairly easy to identify this movie because it is such a well known title in SciFi culture. However, given your limited recollection, I thought it might be useful to include a few other titbits to help jog your memory.
Deep Thought and the Ultimate Answer
First of all, there is the computer that was built to work out the ultimate answer. Nobody bothered to determine what the ultimate question was, so when it returned with "42", it left everyone a little confused. This put in motion the events that lead to the creation of Earth.
Marvin the Paranoid Android
Marvin is a depressed robot who accompanies Arthur and his friends throughout the movie. Voiced by Alan Rickman, he is (in my opinion) the most iconic character of the movie. At one point, he saves the day by firing a "point of view" gun at an army of attacking aliens. Suddenly overwhelmed with depression, themselves, the aliens slump down in defeat.
The Actual Hitchhikers Guide to the Galaxy
Throughout the movie, scenes are broken up with actual animated excerpts narrated by Stephen Fry, that provide nonsensical humour and background information by way of the aformentioned Hitchhikers Guide to the Galaxy.