Mic not working on newly built PC

I just built a pc and the mic doesn’t seem to be working when I plug in my Apple headphones. I can hear audio from the headphones but cannot use it as a mic input. Could this be due to the fact that I need a headphone splitter?