katrinarndl, aloes and cacti are not the same thing. These links explain more https://en.wikipedia.org/wiki/Aloe
It looks like you have an aloe, but, not an Aloe Vera.
Your plant has a lot of dead leaves (the beige ones). When they are that colour, they are dead and can't be revived. If you leave them attached, the rest of the plant can quickly become the same and therefore die completely. You need to peel off every dead leaf and throw them away. You should not leave any parts attached to the plant. Doing that, should at least slow down the decay, if not stop it completely.
The next step would be to sort out the water, food, light and soil. You should use dry, coarse soil for plants like this. It is possible to buy ready-made soils for cacti and other succulent plants. They are good. You could also prepare soil, yourself. The plant needs a lot of sunlight and if you feed it, you should use a dedicated fertiliser for cacti and other succulent plants. Watering should be only be occasional but, when it happens, it should be enough so that water runs out the bottom of the plant pot.
If your plant continues to deteriorate, you could try taking cuttings and growing them separately. It works.