Hamas has been self-governing since 2005.
There are issues with Israeli settlement in the West Bank, yes.
However, Gaza has been incapable of pulling their shit together.
Hamas was elected in 2006.
Since then, they have run Gaza like a 3rd world country, diverting humanitarian aid that is sent to them towards terror activities like building tunnels under civilian areas and digging up pipes to build rockets.
Another primary source of funding for Hamas is extreme taxation on the population, making it even harder for them to survive.
Radical Islamic Jihadism has a lot to do with these issues.
They indoctrinate their own children into terrorism.
Why do you think they have so many young men ready to become martyrs?
Palestinian children are shown anti-semitic cartoons on TV.
The only way this conflict will be resolved is if Hamas is wiped off the face of the Earth.
You can't have peace when your neighbors are terrorists.
I would highly recommend to everyone to check out this series "Whispered in Gaza" which showcase the brutality of Hamas: