Take a species like NaOH. It's both a strong base and a good nucleophile. When it's forming a bond to hydrogen (in an elimination reaction, for instance), we say it's acting as a base. Similarly, when it's forming a bond to carbon (as in a substitution reaction) we say it's acting as a nucleophile.