Bible teaches only two kinds of sickness. One sickness is for God’s glory, and the other is because of our sins which leads to death. There isn’t any other way you can get a sickness.
Sickness for God’s glory
(John 11:3-4) Therefore the sisters sent to Him, saying, “Lord, behold, he whom You love is sick.” When Jesus heard [that,] He said, “This sickness is not unto death, but for the glory of God, that the Son of God may be glorified through it.”
(John 9:2-3) And His disciples asked Him, saying, “Rabbi, who sinned, this man or his parents, that he was born blind?” Jesus answered, “Neither this man nor his parents sinned, but that the works of God should be revealed in him.
This type of sickness is only to a few people who God loves and want to show His glory and reveal His works through them.
Sickness due to sin
(Mic 6:12-13) For her rich men are full of violence, Her inhabitants have spoken lies, And their tongue is deceitful in their mouth. Therefore I will also make [you] sick by striking you, By making [you] desolate because of your sins.
(Matt 9:2) Then behold, they brought to Him a paralytic lying on a bed. When Jesus saw their faith, He said to the paralytic, “Son, be of good cheer; your sins are forgiven you.”
(Jas 5:16) Confess [your] trespasses to one another, and pray for one another, that you may be healed. The effective, fervent prayer of a righteous man avails much.
(Ps 38:3) [There is] no soundness in my flesh Because of Your anger, Nor [any] health in my bones Because of my sin.
This type of sickness is because of our sins. If we sin, we will get sick. Sickness unto death can also be due to further reasons like chastening of God or punishment due to His wrath, fore-father’s sins .Irrespective of all these, they are all due to sin.
There isn’t any other way one can get sick.
God had allowed the sickness on you
(Matt 10:29-31) “Are not two sparrows sold for a copper coin? And not one of them falls to the ground apart from your Father’s will. But the very hairs of your head are all numbered Do not fear therefore; you are of more value than many sparrows.
If a sparrow which is sold for a copper coin cannot fall to the ground without the Father’s will, know and understand that it is His will you must get sickness and have suffering. Therefore, examine yourself to make sure you are holy and repent all sins and the LORD will take your sickness.
(Lam 3:39-40) Why should any living man complain when punished for his sins? Let us examine our ways and test them, and let us return to the LORD.