What are the best ways to lose weight and get abs?

I’m a 17 year old male and recently I have gained a bit of weight. I’ve been trying to do crunches and press ups but they just don’t do it for me. So I’m just wondering what exercises I should do to lose weight?