Without knowing what the error message said, all I can recommend is:
- Also try DFU mode after try recovery mode
- If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
- Try on another computer
- If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
If you can come back with the error message that may help.