Antibiotics are compounds (often produced naturally by fungi) that kill bacteria. They do not work on viruses, which are protected by the cells they are in.
Painkillers are used to relieve the symptoms of infection e.g. if treating colds but do not kill pathogens.