Battery Problems please help!!!!

When you apply the brakes or turn on the lights and ammeter needle goes from straight up and down to the left (discharge) and never goes to the right, the battery is not getting charged !! Could be in the wiring.