This paper investigates stimulated emission and absorption near resonance for a driven system of interacting two-level atoms. Microscopic kinetic equations for the density matrix elements of N -atom states including atomic motion are built, taking into account atom-field and atom-atom interactions. Analytical solutions are given for the resulting macroscopic equations in different limits, for a system composed of a strong coherent "pump" field and a weak counter-propagating "probe" field. It was shown that the existence of a dipole-dipole (long-range) interaction between atoms separated by distance less than the pump wave-length can cause the formation of periodic polarization and population structures (gratings in time and space) in the pumped medium without a probe field. The magnitude of pump induced population grating can have a strong dependence on the relation between the pump field detuning and the polarization decay rate. The "interaction" between pump and probe induced polarization/population gratings through a dipole-dipole interaction mechanism causes the absorption line shape asymmetry. Under certain conditions, this asymmetry is revealed in increasing probe gain for the "red"-shifted (relative to pump) probe and suppressing the gain for the "blue"-shifted probe field when pump is "red"-shifted relative to the ensemble averaged resonant frequency. The theoretical results are consistent with experimental data for the probe gain or absorption as the function of frequency and the dependance of the gain on atomic density for sodium vapor when the pump laser is tuned near the D 2 line. Here the dependance of gain on particle density was explained in the terms of the long-range interaction between the atoms.