Man ruled not competent to stand trial