Basic mechanisms of solar activity