If the button for the rear hatch is not working, make sure that the shifter is adjusted correctly. That switch will not operate if the truck is not in either park or neutral. Just pull up on the shift lever to make sure it is all the way into park. If it works then, it probably needs to be adjusted.
As far as the defroster, start by checking the wires on the rear glass, as they have a tendency to break off.