If your device isn't working properly, you can try several solutions to solve the problem.
In most cases you can solve the problem by following these guidelines:

If there's a problem with your payment information, you can only install free apps.

Solution: Log on to iTunes on a computer and change you payment information.