If an instant or sorcery spell you control with lifelink deals damage to you, you gain and lose that much life simultaneously. In this case, your life total doesn’t change. (You may gain life if the spell also deals damage to other permanents and/or players, however.)