The audio output of many TVs is not on by default so you often have to turn in on in the TV audio menu. Sometimes you have to turn the TV speakers off too.
The input you use on the back of the receiver (optical 1 for example) may have to be assigned to an input name (TV for example).
The owners manuals will have this info even if it's not presented in a user friendly fashion.