Open Safari, go to the Safari menu and click Settings (or Preferences), click Search at the top of that Preferences window, select Google as the Search Engine.
If you are asking about browsers other than Safari (e.g., Chrome or Firefox), the instructions will differ.