From where the header-text can be changed in WordPress custom header?

The header-text option in the custom header allows you to switch off the header text, not to change its content.

You can change the header text in the customizer. To show it in your front end you must must use echo get_bloginfo('name') for the blog title and echo get_bloginfo('description') for the tagline.