Its difficult to know what’s wrong without knowing the error. Reply back with the compiler output and we can better help you!
With that said, it sounds like your problem is that GenerateWordData is declared protected/private within UWordBank.h. This would make it only accessible from within UWordBank, which goes along with you not being able to call it from a different class. Make sure its a public function!