There is classical mechanics, which is based on the assumption that all energies are allowed - this is the older study of physics as developed by Isaac Newton and others. Thent there is quantum mechanics, in which some energies are not allowed. You can read an article about these two main classifications here, and find out more about both by putting the key words in a search engine.