The medicine worked.

Literal

Medicine [subj-が] took-effect.

About as minimal as a Japanese sentence gets — subject + verb + past tense. Note the choice of が over は: this is a simple assertion of fact rather than a topic-comment, and が is natural when introducing new or focused information.