Please provide some details: 1. which shell are you currently using? 2. What "cannot use the command history" means? Do you get some error or it just doesn't show anything when invoked?
Take in mind that the history behaviour depends on some environment variables. The correct set-up depends on their current value. You can check them using: