Stationary solutions for the cubic nonlinear Schrödinger equation modeling Bose-Einstein condensates (BECs) confined in three spatial dimensions by general forms of a potential are studied through a perturbation method and also numerically. Note that we study both repulsive and attractive BECs under similar frameworks in order to deduce the effects of the potentials in each case. After outlining the general framework, solutions for a collection of specific confining potentials of physical relevance to experiments on BECs are provided in order to demonstrate the approach. We make several observations regarding the influence of the particular potentials on the behavior of the BECs in these cases, comparing and contrasting the qualitative behavior of the attractive and repulsive BECs for potentials of various strengths and forms. Finally, we consider the nonperturbative where the potential or the amplitude of the solutions is large, obtaining various qualitative results. When the kinetic energy term is small (relative to the nonlinearity and the confining potential), we recover the expected Thomas-Fermi approximation for the stationary solutions. Naturally, this also occurs in the large mass limit. Through all of these results, we are able to understand the qualitative behavior of spherical three-dimensional BECs in weak, intermediate, or strong confining potentials.