For the laser tanks, you aim by clicking. Point at the enemy tank and click to fire at it.
If the tank you are using has a drag mechanic instead, the input changes slightly. Hold the mouse button, drag your cursor onto the enemy tank, and release. The shot fires toward wherever you let go.
Which of the two you get depends on the specific tank model, so try clicking first and switch to dragging if nothing happens. Range and line of sight still apply, so an enemy behind cover will not take the hit.