What operating system are you using? What soundcard do you have? Do you have the sound control panel open at the same time as Yahoo Messenger? You wouldn't by chance have hit the mute button or something similar in the soundcard's options?
I've had similar problems with video conferencing in AIM and MSN Messenger. Usually it was because I had forgot to close another program.
goates