How can pain killers like ibuprofen work?

Good question. Medications, called, nsaids of which Aspirin is the best known, work by directly blocking an enzyme, called cox, cyclo-ogenase, which its products produce the 'ouch', swelling, reddening, increase in temperature at the site of injury. Also known as rubor, calor, dulor, tumor.