What can I reply someone who sent me an encouraging message, telling them how grateful I am and how much their kind words mean to me
You could respond with something like this:
"Thank you so much for your kind words! They mean a lot to me and truly brighten my day. I really appreciate your support and encouragement—it makes a big difference. I'm grateful to have you in my life!"
Feel free to personalize it further to match your feelings and style!