I tried to cheer her up, but she just kept crying.

Literal

I [topic-は] her [object-を] courage-give-[volitional-よう]-[try-to-とした]-[but-が], she [topic-は] crying-[only-ばかり]-[state-いた].

~ようとする ('try to do') combines the volitional with とする to express an attempt. 勇気づける ('encourage,' literally 'attach courage') is a compound verb. 泣いてばかりいた ('was only crying, was doing nothing but crying') uses the ~てばかりいる pattern for 'keep doing nothing but X.' A melancholy scene.