[Edit] I have documented this problem as well as the solution that worked for me. See my answer below.
This is the laptop
System comes pre-installed with Windows 10 and sound works fine in Windows.
I installed Ubuntu 19.04 but the sound is not working
The sound card is Intel and the Chipset is Realtek ALC295
Sound works when using the headphone but no sound from the internal speakers