Its not that only solvent causes carbocations/carbanions and only light and heat causes radicals. It all depends on the bond in question.
For weak bonds (N-Cl, O-O, etc.) you can achieve homolysis by heating because the bond dissociation energy is relatively low. A C-H bond dissociation energy is higher and so unless you are at fairly high temperatures, you wont see radical reactions (unless you have some initiator).
Therefore, it is all about the bond you are observing that determines what conditions you need to have an ionic reaction or radical reaction.
Yurii V Geletii Sir, In organic reactions what i have found is -If Heat or light energy is used then free radical mechanism is written and if some solvents are used then carbocation or carbanion mechanism is written, Why is this so ??
The question is too general and dos not have a single answer. A homolytic cleavage of bonds depends on bond strength, which is directly related to the change of reaction enthalpy. A photon has a very high energy compared with a bond strength. Carbocation or carbanion formation strongly depends on acidity/bacesicity. The reactions of free radicals always result in formation of another radical, and you have a radical chain mechanism. In general it's difficult to say which mechanism is preferable.