Is medicine living or non living?

No. They are made up of pressed chemicals that dissolve in the acid in your stomach, and then enter your bloodstream, which causes the effects. Living things are made up of cells, which are not inside of pills.

It depends on the medicine. Some are inorganic (non-living) others are made by living organisms (insulin, penicillin) still others like vaccines contain weakened forms of viruses that allow the body to develop immunity. Recent "medicines" include cells to at as organs (pancreatic cell to produce insulin) or stem cells which are living and grow into new nerves etc.