You can use aloe vera or tea tree oil creams or sprays. Do not use any products that contain alcohol. It will increase irritation and dry out your skin.
The best cure for razor burn is a topical anti-inflammatory, but a cheap old wives solution is vinegar (it will burn) followed by a moisturizer. It hurts, but it is effective extremely quickly.