In The Elder Scrolls IV: Oblivion, leveling up depends on improving your skills. You need to increase your Major and Minor Skills a total of ten times in any combination. For example, if your Major Skills are Athletics, Blade, and Heavy Armor, you might raise Athletics four times, Heavy Armor five times, and Blade once.
Once you have made those ten improvements, the game will tell you that you need to rest. Find a place to sleep, either at an inn or in a home you own. When you sleep, you will gain a level and be prompted to choose three attributes to increase.
Practicing skills, especially by repeatedly casting spells, is a reliable way to push those improvements. On the PC version, you can also open the console with the tilde key (~) and type "advlevel" for an instant level, though that is a cheat rather than normal play.