When to use what?

I know like слушать музыку, слушать преподавателя.

I thought слышать was "listen to" e.g. an advice, or e.g. children listening to their parents to behave or something. Am I wrong?

When to use what? Please give some common examples.

Thanks