Fight monsters and complete quests — that is the whole engine. Quests are the faster of the two, since they award experience in a lump along with gold and items, so pick up everything available in a zone before you start grinding there.
Once you out-level an area, move on. Experience gains fall off sharply against enemies far below your level, and staying put is the most common reason people feel stuck.