@Frenchw1fe
I'll just briefly explain Gaza, which is the Palestinian territory that suffers from water and electricity problems.
Gaza used to be occupied by Israel like the West Bank - IDF soldiers were stationed there, there were Jewish settlers etc.
In 2005, Israel decided to withdraw from Gaza - it demolished the houses of Jewish settlers and forced them to leave, and all Israeli soldiers left the Gaza Strip.
Elections were held in January 2006 - Hamas won. A violent conflict soon broke out between Hamas and the more moderate Fatah party (which controls the West Bank). Hamas won this conflict and most Fatah members fled to Egypt or the West Bank. Hamas has never held any more elections, so it is an authoritarian regime.
Ever since Hamas consolidated its control of the Gaza Strip, it has poured a huge proportion of its resources into developing rockets to fire against Israel (there are also a few other factions that fire rockets into Israel, most notably Palestinian Islamic Jihad - PIJ)
As a result, Israel has imposed a blockade on Gaza - it effectively refuses to allow into Gaza anything that could conceivably be used to build rockets.
This has undeniably created huge suffering for the ordinary Palestinian people - it means a lot of building materials can't get through, making it hard to rebuild homes. It also means that supply parts for Gaza's water salination plant are often blocked from getting through.
It's important to remember though that Egypt also has a border with Gaza - if Egypt was willing to allow resources through, then the Israeli blockade would have no effect.
Regarding electricity, it's even more complicated, and it's to do with the Fatah-Hamas conflict that I mentioned above. Even though Gaza is ruled by Hamas, they are dependent on the Fatah-ruled Palestinian Authority (PA) in the West Bank to provide electricity funding. Since 2017, relations between Hamas and Fatah have broken down completely, and the PA has stopped providing the payments needed by Gaza for electricity.
This is only a very limited summary - there are lots of other factors at play.