you may have inadvertently connected to airplay speakers in iTunes? This will make it seem like everything is playing fine, but you don't have sound. check in the lower right corner of iTunes to make sure it says "computer" not whatever your (presumed) airplay device might be.
If that is not the case:
You may want to check out Audio Midi setup in Applications/Utilities to see what you have your sound output to as well.