A remember to do sth.记住做还未做的事(未发生),remember doing sth.记住做过什么事(已发生);
B it is important to do sth.it是形式主语,to do 是不定式作真正主语.