Insufficient detail.
However, I suspect the reason that training failed is because hardlim is not differentiable.
I don't think anyone is going to try to help you unless you describe your problem in much more detail.
For example, why do you believe you have to have hardlim as an output transfer function? It makes no sense to me.
You don't explain
1. Type of problem
2. Dimensions of input and output vectors
3. Amount of data
3. Type of net
4. Number of hidden nodes
5. Type of transfer functions
6. Non-default parameter choices
7. Normalized quantitative results e.g.,
NMSE = mse(error)/mean(var(target',1))
etc