I sent flowers to the hospital to cheer her up.

Literal

Her cheer-up [purpose-ために] hospital [to-に] bouquet [object-を] sent.

元気付けるために marks the purpose. 花束 means 'bouquet.' 病院に送った means 'sent to the hospital.'