It appears that you are missing both step flashing (between the roof and the wall) and the head flashing (above the trim running parallel to the roof line). Here is the link to the Hardie Best Practic ... read more
Most likely it is a GFCI outlet which esssentially means the circut has been blown at the outlet. This usually happens if a drop of water or a hard bump occured within the circuit. If this is the case ... read more