ALTERNATOR IS NOT CHARGING AND DRAINING THE BATTERY

2002 Hyundai Elantra

02 hyundai elantra - battery died - charged it and it holds good charge - altenator does not seem to be charging - friend I bought the car from says it is not the altenator but one of the wires on the altenator - I put new end on that wire clean all connections same result - replace alt because it is under warranty - same issues plus along with this I have lost pwr window, pwr sunroof, heat / ac blower motor - all fuses look good - even replaced some to make sure - please help me out