Let us play a G major scale on the keyboard. You simply start on G, and apply the same pattern from the tonic.
Once you hear how a major scale is supposed to sound, you will be able to find every major scale by listening, too. Let us also play a D major scale. Fingerings are the same.