To make a sound; for something (an object or thing) to emit a noise.
机の下からカサカサという音がする。
There is a rustling sound coming from under the desk.
古い配管がゴーッと大きな音をする。
The old pipes make a loud whooshing sound.
棚の上で箱がカタカタと音がした。
A box rattled on the shelf.
外から車のブレーキ音がする。
I can hear the sound of car brakes from outside.
To hear a sound; to notice that a sound is present (from the speaker's perspective).
夜になると遠くで花火の音がする。
At night you can hear fireworks in the distance.
階段から誰かの足音がするので気をつけてください。
Be careful — I can hear someone's footsteps on the stairs.
壁の向こうで話し声がする。
I can hear voices on the other side of the wall.