In Scripture, “elements” can mean the basic constituents of things or the first principles of instruction. It may refer to the constituents of creation, or to rudimentary religious teaching that is weak and inadequate compared with the gospel.
In 2 Peter the elements are described as being dissolved. In Galatians and Colossians, the elements of the world refer to elementary religious observances and types associated with the former state of religious knowledge before Christ.
These religious elements are called weak and beggarly because they are insufficient and are not accompanied by the spiritual gifts and graces associated with the gospel.