First, check your settings and see what the audio output (sink) and input (source) are set to. Open the Settings and click on the Sound tab to do this. In my case, it showed both to be USB audio and since I do not have USB audio devices connected, I got no sound.
Then open a terminal window and enter the command below. Your results will, of course, be different.
$ pactl list short sinks
1 alsa_output.usb-Generic_USB_Audio_200901010001-00.HiFi__hw_Dock_1__sink module-alsa-card.c s24le 2ch 48000Hz SUSPENDED
2 alsa_output.usb-Generic_USB_Audio_200901010001-00.HiFi__hw_Dock__sink module-alsa-card.c s24le 2ch 48000Hz IDLE
3 alsa_output.pci-0000_00_1f.3.analog-stereo module-alsa-card.c s16le 2ch 48000Hz SUSPENDED
This tells me that the sink (output device) that I want is the 3rd one in the list. Make note of the text string for the device you want. For me it is 'alsa_output.pci-0000_00_1f.3.analog-stereo'.
Similarly run:
$ pactl list short sources
1 alsa_output.usb-Generic_USB_Audio_200901010001-00.HiFi__hw_Dock_1__sink.monitor module-alsa-card.c s24le 2ch 48000Hz SUSPENDED
2 alsa_output.usb-Generic_USB_Audio_200901010001-00.HiFi__hw_Dock__sink.monitor module-alsa-card.c s24le 2ch 48000Hz RUNNING
3 alsa_input.usb-Generic_USB_Audio_200901010001-00.HiFi__hw_Dock__source module-alsa-card.c s24le 2ch 48000Hz RUNNING
4 alsa_output.pci-0000_00_1f.3.analog-stereo.monitor module-alsa-card.c s16le 2ch 48000Hz SUSPENDED
5 alsa_input.pci-0000_00_1f.3.analog-stereo module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
The source I want is 'alsa_input.pci-0000_00_1f.3.analog-stereo'.
Then enter the following commands (using your desired sink and source of course):
$ pactl set-default-sink 'alsa_output.pci-0000_00_1f.3.analog-stereo'
$ pactl set-default-source 'alsa_input.pci-0000_00_1f.3.analog-stereo'
Check the Settings > Sound. The settings should be correct, and if you used the right devices your audio should work.
Once you know that it's right, just edit your .profile file and add these two pactl commands to that file.