Gel or Wax used for hair is it haram or we can use it?

There is no harm in using these materials but it it reaches to the skin of your head then for Masah (during Wuzu) and for Ghusl you have to clean oiliness from the skin.