One of the best ways is to use your ears.
Listening to where the shot is coming from can show you which location enemies are.
Also note that people will usually hide behind objects, in building, trees, etc. So check those areas as soon as possible.
If it is too late and you are dead, take a look at the 'Death cam' which shows you exactly where and how the enemy attacked you.