As I understand it, the fault was the pito tubes which gives the air speed, there is only 1 where as most aircraft have 2
Pitot tubes were not the cause of the Max's problems. All modern airline jets have at least three active/measuring pitots along with static pitot(s) all with inbuilt redundancy.
The main problem of the 737Max was seen to be the 'MCAS' ( Manoeuvring Characteristics Augmentation System ).
This system was deemed necessary as with the new engine design and their placement being in a more forward position than that of previous generation 737s the climb characteristics were changed. To help alleviate and therefore hopefully not necessitate a different type rating for pilots the MCAS was implemented in the hope that the aircraft would appear, to the flight crew, to behave the same/similar as say, the 738/739's.
MCAS was designed to use only one of the two AoA ( Angle of Attack ) sensors and would operate
multiple times, when a potential stall was signalled.
This has now been changed in that the software has been modified and now uses both AoA sensors, not one. The MCAS also now only activates once and AFAIK its flight authority has also been decreased.
Poor implementation of what was seen as a safety system and even poorer and or non existent pilot training has been cited as the root of the 737Max's tragedies.
PS. I have deliberately 'simplified' the above as it gets quite technical and would be even more boring to read. But the 'jist' of the cause I hope comes across.