Writing Dialogue

I’ve always struggled with writing dialogue, most of the time it sounds dry and boring. I was wondering if anyone had any tips for this.