A credit score takes into account years of past behavior.
Pay your bills on time. Get credit for making utility and cell phone payments on time.
Pay off debt and keep balances low on credit cards and other revolving credit. Apply for and open new credit accounts only as needed.