Without model numbers we can't give you an exact answer.
On some TVs you have to turn the audio output on, the internal TV speakers off, and change the audio output type in the TV menu. Make sure you have selected the correct input on the soundbar. Check the owners manual.