You have to take all the forces for design of walls, axial, shear, lateral earth/water pressure. But usually walls are quite strong in compression and you can assume pinned connection of basement wall with floor. That way you design only for lateral earth/water pressure with propped-cantilever condition (fixed at base, pinned at top).
Model a line element in a structural software and check the moments.
a. For a triangular load (earth pressure) maximum moment at base will be -2WL/15 and positive moment somewhere above base will be 0.0596WL with 1/4th reaction on pinned support.
where W is the total load in KN.
b. For a uniform load (surcharge) max mom at base is WL²/8 and max positive moment is 9/128 WL² with 3/8th reaction going to pinned base.
where W is the load per m in Kn/m.
Then just add a and b together (superposition for linear analysis).