"Good morning, sir." is correct When "sir" comes before someone's name, then it should be capitalized - "Good morning, Sir William."