What caused Lion Air's Boeing 737 Max to go down last year?

Boeing is under scrutiny as two of its aircrafts have crashed in less than a year.