Laptop internal mic and input via headphones mic is not working in Ubuntu 18.04

I have HP ProBook 4431s. My laptop internal mic doesn’t work. Even if I try use headphones and use it’s mic, I only hear noise but no sound is recorded. Input setting shows no indication when I speak into both microphones. I have tested the above mentioned things on Windows 10 to check if it’s a hardware issue but it works fine.