Ubuntu 14.04 does not recognize sound card

I had the same problem. You can solve it using the following command:

sudo aptitude --purge reinstall linux-sound-base alsa-base alsa-utils linux-image-`uname -r` linux-ubuntu-modules-`uname -r` libasound2

Then just restart the computer.