An establishing shot does pretty much exactly what it says on the tin, it establishes a scene. It allows the people watching to see the relationship between the subject and the location in that scene. An establishing shot can be used to show a new location but as well as that it can be used to show the tone of that scene and quite possibly the rest of the film.