Who pays National Insurance and what does it pay for?

Who pays National Insurance and what does it pay for?