my car simply refused to start one afternoon due to battery trouble... on 1998 Nissan Pathfinder

another battery was wrongly connected opposite and immediately returned back correctly but then it only cranked but refused to start, a rewire did some few touches here and there and it starts, later in d day it cranked but refuses to start again, i swarped some of the fuses and it starts again. now i want to know what is going on to avoid it disappointing me some place in the wild.

Asked by for the 1998 Nissan Pathfinder