Electric and hydraulic heart