tried to ... but failedFollows a verb in the volitional form, such as 開けようとしたがだめだった (tried to open it, but failed). だめだった means that the attempt did not work or was unsuccessful.
JA: 何度も説明しようとしたがだめだった。
EN: I tried to explain it many times, but I failed.