Lenovo Laptop Microphone doesn't work?

My Lenovo g40-70's built in mic isn't working. I used it till now but suddenly its not working. So I bought in a Headphone with mic and it goes in to the 3.5 input of the laptop. However, only I can hear but pc can't hear me. Nothing.

I tried with another lenovo laptop through the same single 3.5 input and it works there. So why is it not working in the g40?
Windows 10-64

I worked for Lenovo for many years in Engineering and there are different series that have different design and production. Thinkpads have more internal Lenovo control. Ideapads are more consumer. For several years they had G series that is much closer to an Acer as outside design and production with minimal control at Lenovo. They did this for cost and you purchased a low cost series.

It is expensive fixing things on the main circuit board in the laptop or about internal parts in general.
Most people with inexpensive or older laptops would rather use cheap fixes and workarounds instead of expensive ones.

You have three options of cheap fixes.
The 3.5mm is generally a 4 position 3.5mm female connector in the laptop. You can split it into headphone and microphone three position. At Amazon, and many other stores, there are headphone-microphone separators
This is a cheap company out of Hong Kong as long time to deliver usually but has good selections and pictures:

See the 4 position male pin 3.5mm
See the clearly marked headphone and microphone

You need to be careful not to get a splitter into two heaphones.

Your second option is a headphone+mic designed for 4 pin.

https://www.miniinthebox.com/en/p/jtx-702-3-5mm-noise-cancelling-mike-in-ear-earphone-for-iphone-and-other-phones-assorted-colors_p3194136.html?prm=2.5.1.9

Your third option is bypassing the audio in the laptop and changing to USB audio.
https://www.miniinthebox.com/en/p/orico-sk02-external-usb-sound-card-stereo-mic-speaker-headset-audio-jack-3-5mm-mini-cable-adapter-free-drive-for-pc-laptop_p6366427.html?prm=2.5.1.1

There are many sellers at various prices
https://www.amazon.com/...001DXNONI/

In the G40, it could be a connector issue or a short in the internal.
If you are confident about the 3.5mm headphone-mic splitter you already tried, try a USB audio solution.
You can also try internal software settings in case you accidental put the mic volume to zero.

Most laptops do NOT have HEADSET connectors which use a 4 connection plug. ALL sockets these days should be COLOUR coded so you can't make that mistake. A pc has a headPHONES connection which uses a SHORTER 3 connection plug. Inserting a four connection plug shorts out some connections and BENDs the END connection inside the socket.

This may be a stupid answer, but perhaps you have accidentally turned the microphone off in software either via Windows or a Lenovo utility.

Go into Windows and search for Microphone and check the settings.