The functions and activities of living organisms or their parts involved in generating and responding to electrical charges .