Great question! Our tone is difficult to impart in electronic communications. I like to start by thanking the sender for their email before I begin my response. I incorporate their name as well.
With text, I usually start with something like “How are you?” before I make my request or tell them something.