Although blocking messages from a specific number is not a factory option on the iPhone, there are a few other options that may work for you. Check out Family Allowance, an account feature that allows you to block specific numbers. Also, many users have had success using third party applications. Be sure to check out other threads devoted to blocking texts on the iPhone.
Hope this helps!