find out the format of the file you are trying to play, check to see if the codec for that format is installed, and, if not, download a codec for the format you need.
edit: actually, first try to open the file with another media player, because if it works in another media player, it is just a problem with windows media play and not the codec