Unsuccessfully means that something doesn't work out the way that you hoped it would. It can also mean that you don't achieve your goals.
- The experiment was unsuccessful because the results were inconclusive.
- Her attempt to start her own business was unsuccessful.