Lots of things
Depends upon the extent of the infection, the integrity of the remaining tooth material, and the surrounding supporting tissues.
The key is time. The sooner you get to the Dentist for care, the less complex the restorative process. See your Dentist, have a complete examination and diagnostic x-rays. With that data in hand your Dentist can review alternative treatments with you.